FROM ubuntu:focal ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y build-essential git libffi-dev pkg-config python3 wget \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* RUN git clone --depth 1 -b v1.18 https://github.com/micropython/micropython.git /src WORKDIR /src/mpy-cross RUN make WORKDIR /src/ports/unix RUN make submodules RUN make ENTRYPOINT /src/ports/unix/micropython CMD modules/main.py