1515#
1616# --- Build and upload to GHCR.IO ---
1717# (Run from the root of the TFLM repository)
18- # export TFLM_CI_VERSION=0.6.4
19- # docker build -f ci/Dockerfile.micro -t ghcr.io/tflm-bot/tflm-ci:$TFLM_CI_VERSION .
18+ # export TFLM_CI_VERSION=0.6.5
19+ # docker build --no-cache - f ci/Dockerfile.micro -t ghcr.io/tflm-bot/tflm-ci:$TFLM_CI_VERSION .
2020# docker push ghcr.io/tflm-bot/tflm-ci:$TFLM_CI_VERSION
2121#
2222# --- Run locally for debugging ---
2828# Use a prebuilt Python image to speed up the build process.
2929FROM python:3.10-bookworm
3030
31+ # Install qemu-user from bookworm-backports to address a known bug:
32+ # https://gitlab.com/qemu-project/qemu/-/issues/1697
33+ RUN echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list && \
34+ apt-get update && \
35+ apt-get install -y --no-install-recommends -t bookworm-backports qemu-user && \
36+ rm -rf /var/lib/apt/lists/*
37+
3138# Install all required system dependencies
3239RUN apt-get update && apt-get install -y \
3340 gnupg \
3441 lsb-release \
35- qemu-system-arm \
3642 software-properties-common \
3743 sudo \
3844 wget \
@@ -56,7 +62,7 @@ RUN wget https://apt.llvm.org/llvm.sh \
5662# Install all Python dependencies
5763# - yapf to check for Python formatting
5864# - Pillow was added first for the C array generation
59- # - pandas, matplotlib, and six for create_size_log scripts
65+ # - pandas, and matplotlib for create_size_log scripts
6066# - pyyaml, requests, psutil, and robotframework for Renode test
6167RUN pip install --no-cache-dir --upgrade pip && \
6268 pip install --no-cache-dir \
@@ -67,7 +73,6 @@ RUN pip install --no-cache-dir --upgrade pip && \
6773 pyyaml \
6874 requests \
6975 robotframework==4.0.1 \
70- six \
7176 yapf==0.40.2
7277
7378# Copy and run install scripts, then clean them up
0 commit comments