From 248d25a235bc8e92471ec004ba138517bb8613eb Mon Sep 17 00:00:00 2001 From: Xiahua Liu <49677912+xiahualiu@users.noreply.github.com> Date: Sun, 21 Apr 2024 21:53:04 +0000 Subject: [PATCH] fix(docker): Fix entrypoint.sh is not executable issue Closes https://github.com/espressif/esp-idf/pull/13660 --- tools/docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 5c6f33a1a5..fa96b20be6 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -41,10 +41,10 @@ RUN : \ # To build the image for a branch or a tag of IDF, pass --build-arg IDF_CLONE_BRANCH_OR_TAG=name. # To build the image with a specific commit ID of IDF, pass --build-arg IDF_CHECKOUT_REF=commit-id. -# It is possibe to combine both, e.g.: +# It is possible to combine both, e.g.: # IDF_CLONE_BRANCH_OR_TAG=release/vX.Y # IDF_CHECKOUT_REF=. -# Use IDF_CLONE_SHALLOW=1 to peform shallow clone (i.e. --depth=1 --shallow-submodules) +# Use IDF_CLONE_SHALLOW=1 to perform shallow clone (i.e. --depth=1 --shallow-submodules) # Use IDF_CLONE_SHALLOW_DEPTH=X to define the depth if IDF_CLONE_SHALLOW is used (i.e. --depth=X) # Use IDF_INSTALL_TARGETS to install tools only for selected chip targets (CSV) @@ -102,5 +102,6 @@ ENV IDF_PYTHON_CHECK_CONSTRAINTS=no ENV IDF_CCACHE_ENABLE=1 COPY entrypoint.sh /opt/esp/entrypoint.sh +RUN chmod +x /opt/esp/entrypoint.sh ENTRYPOINT [ "/opt/esp/entrypoint.sh" ] CMD [ "/bin/bash" ]