From cdb094c360322cc69910fa555538739f8c9e5b23 Mon Sep 17 00:00:00 2001 From: cornholio <0@mcornholio.ru> Date: Fri, 16 Aug 2024 09:51:23 +0200 Subject: [PATCH] Adding /__w directory to tools image This (in theory) will allow running GHA in container, without root see https://github.com/actions/checkout/issues/1014 --- dockerfiles/tools/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfiles/tools/Dockerfile b/dockerfiles/tools/Dockerfile index e59d6560..45802750 100644 --- a/dockerfiles/tools/Dockerfile +++ b/dockerfiles/tools/Dockerfile @@ -34,7 +34,8 @@ RUN set -x \ && useradd -u 1000 -g 1000 -s /bin/bash -m nonroot \ && git config --global --add safe.directory '*' \ && cp /root/.gitconfig /home/nonroot/.gitconfig \ - && chown nonroot:nonroot /home/nonroot/.gitconfig + && chown nonroot:nonroot /home/nonroot/.gitconfig \ + && mkdir /__w && chown nonroot:nonroot /__w USER nonroot:nonroot CMD ["/bin/bash"]