blob: 0a512b4a2895d9ae60ca8baaa6b08f58a0e22271 [file] [log] [blame]
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION} as build
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& : # last line
RUN set -x \
&& git clone --recursive -b v4.4.4 --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git /tmp/esp-idf \
&& : # last line
FROM connectedhomeip/chip-build:${VERSION}
ENV IDF_PATH=/opt/espressif/esp-idf/
ENV IDF_TOOLS_PATH=/opt/espressif/tools
COPY --from=build /tmp/esp-idf /opt/espressif/esp-idf
# Setup the ESP-IDF
WORKDIR /opt/espressif/esp-idf
RUN set -x \
&& ./install.sh \
&& : # last line