Created
April 27, 2024 13:52
-
-
Save vencax/78b7c89fb1b97e279ce059e050bcd4fa to your computer and use it in GitHub Desktop.
Dockerfile for image for building custom micropython builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
SHELL ["/bin/bash", "-c"] | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update -y && \ | |
apt-get install -y \ | |
git wget flex bison gperf python3 python3-pip python3-setuptools python3.8-venv \ | |
cmake ninja-build ccache libffi-dev libssl-dev dfu-util && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 | |
ENV PYTHON2=python | |
RUN pip3 install -I pyparsing==2.3.1 && \ | |
pip3 install pyserial && \ | |
pip3 install rshell | |
# install ESP IDF on the image - it will be performed only ocasionally, | |
# when you want to use another version, you rebuild image | |
RUN git clone --recursive https://github.com/espressif/esp-idf.git /root/esp-idf && \ | |
cd /root/esp-idf && \ | |
git checkout v5.0.4 && \ | |
git submodule update --init --recursive && \ | |
./install.sh | |
ENV ESPIDF=/root/esp-idf | |
ENV MICROPY_DIR=/micropython | |
WORKDIR /root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment