-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile.micropython.1.22.esp32
48 lines (35 loc) · 1.33 KB
/
Dockerfile.micropython.1.22.esp32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM --platform=linux/x86_64 python:3.11
RUN apt-get update && \
apt-get install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 quilt
WORKDIR /opt/app
ENV PATH=${PATH}:/root/.local/bin
RUN git clone https://github.com/micropython/micropython && \
git clone -b v5.0.4 --recursive https://github.com/espressif/esp-idf.git && \
cd /opt/app/micropython && \
git checkout v1.22.2 && \
git submodule update --init && \
pip install -U pip && \
pip install pyparsing==2.3.1 && \
pip install esptool==3.0 && \
pip install pyserial==3.5 && \
pip install 'click>=7.0' \
'future>=0.15.2' \
'pyelftools>=0.22' \
'idf-component-manager~=1.2' \
'urllib3<2' \
'pygdbmi<=0.9.0.2' \
'kconfiglib==13.7.1' \
'bitstring>=3.1.6,<4' \
'construct==2.10.54'
ENV ESPIDF "/opt/app/esp-idf"
ENV IDF_PATH "/opt/app/esp-idf"
ENV BOARD "MDNS"
WORKDIR ${ESPIDF}
RUN ./install.sh esp32
ADD config/boards-after-micropython-1-20/ /opt/app/micropython/ports/esp32/boards/
WORKDIR /opt/app/micropython
RUN make -C mpy-cross
WORKDIR /opt/app/micropython/ports/esp32
RUN bash -c "source ${IDF_PATH}/export.sh && make submodules && make"
ADD src/mdns_client modules/mdns_client
RUN bash -c "source ${IDF_PATH}/export.sh && make"