micropython-esp32/Dockerfile
Lauri Võsandi 5e06963f3f
All checks were successful
continuous-integration/drone Build is passing
Clean up Dockerfile
2022-03-15 22:30:15 +02:00

15 lines
507 B
Docker

FROM espressif/idf:v4.3.2
ENV DEBIAN_FRONTEND=noninteractive
RUN : \
&& apt-get update \
&& apt-get install -y pkg-config \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 -b v1.17 https://github.com/micropython/micropython.git /src
WORKDIR /src
RUN make -C mpy-cross
WORKDIR /src/ports/esp32
RUN bash -c "source /opt/esp/idf/export.sh && make submodules && make"
RUN rm /src/ports/esp32/build-GENERIC/frozen_content.c
CMD make && cp build-GENERIC/firmware.bin /build/