2022-12-04 20:27:32 +01:00
|
|
|
FROM registry.hottis.de/dockerized/base-build-env:1.5.3-bullseye
|
2021-03-08 17:28:47 +01:00
|
|
|
|
|
|
|
LABEL Maintainer="Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>"
|
|
|
|
LABEL ImageName="registry.hottis.de/dockerized/build-env-esp32"
|
|
|
|
|
|
|
|
ARG Esp32CloneUrl=https://github.com/espressif/esp-idf.git
|
2022-12-04 19:59:56 +01:00
|
|
|
ARG ESP_RELEASE=release/v5.0
|
2021-03-08 17:28:47 +01:00
|
|
|
ARG UID="1000"
|
|
|
|
ARG GID="1000"
|
2022-12-04 20:27:32 +01:00
|
|
|
ENV USER esp
|
2021-03-08 17:28:47 +01:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apt update && \
|
2022-12-04 20:27:32 +01:00
|
|
|
apt upgrade -y && \
|
2022-12-04 20:19:16 +01:00
|
|
|
apt install -y git wget flex bison gperf python3 python3-venv cmake \
|
|
|
|
ninja-build ccache libffi-dev libssl-dev dfu-util \
|
2022-12-04 20:22:13 +01:00
|
|
|
libusb-1.0-0 python3-pip && \
|
2021-03-08 17:28:47 +01:00
|
|
|
groupadd -r -g $GID $USER && \
|
|
|
|
useradd -m -r -u $UID -g $USER -G dialout $USER
|
|
|
|
|
|
|
|
USER $USER
|
|
|
|
WORKDIR /home/$USER
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
mkdir project && \
|
2021-03-08 20:23:12 +01:00
|
|
|
git clone --recursive -b $ESP_RELEASE $Esp32CloneUrl && \
|
2021-03-08 17:28:47 +01:00
|
|
|
cd esp-idf && \
|
|
|
|
./install.sh
|
|
|
|
|
|
|
|
VOLUME /home/$USER/project
|
|
|
|
|