From 16d033a9197f8c78638459fd45c3645c8498cb5d Mon Sep 17 00:00:00 2001 From: Peter Dragun Date: Tue, 28 Feb 2023 11:19:24 +0100 Subject: [PATCH] tools: Docker: add build-essentials needed for linux targets Closes https://github.com/espressif/esp-idf/pull/10772 --- tools/docker/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index ccfd7f9fd66..e3d5ce376d0 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -51,6 +51,14 @@ ARG IDF_INSTALL_TARGETS=all ENV IDF_PATH=/opt/esp/idf ENV IDF_TOOLS_PATH=/opt/esp +# install build essential needed for linux target apps, which is a preview target so it is installed with "all" only +RUN if [ "$IDF_INSTALL_TARGETS" = "all" ]; then \ + apt-get update \ + && apt-get install -y build-essential \ + && apt-get autoremove -y \ + && rm -rf /var/lib/apt/lists/* ; \ + fi + RUN echo IDF_CHECKOUT_REF=$IDF_CHECKOUT_REF IDF_CLONE_BRANCH_OR_TAG=$IDF_CLONE_BRANCH_OR_TAG && \ git clone --recursive \ ${IDF_CLONE_SHALLOW:+--depth=1 --shallow-submodules} \