blob: 602db0c41d3f63cbbd47a0e1526b5feecdd14ffc [file] [log] [blame]
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION}
# Setup the ESP-IDF
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python \
&& mkdir -p /opt/espressif \
&& cd /opt/espressif \
&& git clone --progress -b v4.1 https://github.com/espressif/esp-idf.git \
&& cd esp-idf \
&& git submodule update --init --progress \
&& IDF_TOOLS_PATH=/opt/espressif/tools ./install.sh \
&& : # last line
ENV IDF_PATH=/opt/espressif/esp-idf/
ENV IDF_TOOLS_PATH=/opt/espressif/tools