micropython-esp32/Dockerfile

15 lines
507 B
Docker
Raw Permalink Normal View History

2022-03-15 08:30:48 +00:00
FROM espressif/idf:v4.3.2
2022-03-15 07:29:18 +00:00
ENV DEBIAN_FRONTEND=noninteractive
RUN : \
&& apt-get update \
&& apt-get install -y pkg-config \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
2022-03-15 14:44:15 +00:00
RUN git clone --depth 1 -b v1.17 https://github.com/micropython/micropython.git /src
2022-03-15 20:25:36 +00:00
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
2022-03-15 20:25:36 +00:00
CMD make && cp build-GENERIC/firmware.bin /build/