From 6b3515750a7a8f143f962e8f7166dd8e92bd5990 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 8 Mar 2021 17:28:47 +0100 Subject: [PATCH] initial --- Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5366a5e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM registry.hottis.de/dockerized/base-build-env:1.3.0 + +LABEL Maintainer="Wolfgang Hottgenroth " +LABEL ImageName="registry.hottis.de/dockerized/build-env-esp32" + +ARG Esp32CloneUrl=https://github.com/espressif/esp-idf.git +ARG UID="1000" +ARG GID="1000" +ENV USER esp32 + +RUN \ + apt update && \ + apt install -y python3 vim.tiny python-serial \ + python3-serial flex bison gperf cmake ninja-build \ + ccache libffi-dev libssl-dev dfu-util && \ + update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \ + 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 $Esp32CloneUrl && \ + cd esp-idf && \ + ./install.sh + +VOLUME /home/$USER/project + + + + +