FROM registry.hottis.de/dockerized/base-build-env:1.5.3-bullseye LABEL Maintainer="Wolfgang Hottgenroth " LABEL ImageName="registry.hottis.de/dockerized/build-env-esp32" ARG Esp32CloneUrl=https://github.com/espressif/esp-idf.git ARG ESP_RELEASE=release/v5.0 ARG UID="1000" ARG GID="1000" ENV USER esp RUN \ apt update && \ apt upgrade -y && \ apt install -y git wget flex bison gperf python3 python3-venv cmake \ ninja-build ccache libffi-dev libssl-dev dfu-util \ libusb-1.0-0 python3-pip && \ groupadd -r -g $GID $USER && \ useradd -m -r -u $UID -g $USER -G dialout $USER USER $USER WORKDIR /home/$USER RUN \ mkdir project && \ git clone --recursive -b $ESP_RELEASE $Esp32CloneUrl && \ cd esp-idf && \ ./install.sh VOLUME /home/$USER/project