Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
a661af08d6
|
|||
5fd0b78907
|
|||
1adbc9dda1
|
|||
393c7e7024
|
|||
6da38a5d16
|
|||
c60e14ee66
|
|||
00a4bc345f | |||
d63747e95e | |||
afe0edcaa6 |
20
Dockerfile
20
Dockerfile
@ -1,20 +1,20 @@
|
||||
FROM registry.hottis.de/dockerized/base-build-env:1.3.0
|
||||
FROM registry.hottis.de/dockerized/base-build-env:1.5.3-bullseye
|
||||
|
||||
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
|
||||
ARG ESP_RELEASE=release/v5.0
|
||||
ARG UID="1000"
|
||||
ARG GID="1000"
|
||||
ENV USER esp32
|
||||
ENV USER esp
|
||||
|
||||
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 && \
|
||||
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 && \
|
||||
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
|
||||
|
||||
@ -23,13 +23,9 @@ WORKDIR /home/$USER
|
||||
|
||||
RUN \
|
||||
mkdir project && \
|
||||
git clone --recursive $Esp32CloneUrl && \
|
||||
git clone --recursive -b $ESP_RELEASE $Esp32CloneUrl && \
|
||||
cd esp-idf && \
|
||||
./install.sh
|
||||
|
||||
VOLUME /home/$USER/project
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user