From 36acc75c011beef99b91a4efbbf8bdfc9658777e Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Mon, 11 Nov 2024 22:47:21 +0100 Subject: [PATCH] now running as user 1000 so it can read and write the checked out files. --- images/go.1.23.2/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/images/go.1.23.2/Dockerfile b/images/go.1.23.2/Dockerfile index 3739897..aec77eb 100644 --- a/images/go.1.23.2/Dockerfile +++ b/images/go.1.23.2/Dockerfile @@ -9,5 +9,9 @@ RUN curl -L https://github.com/a-h/templ/releases/download/v0.2.747/templ_Linux_ mv templ /bin ENV CGO_ENABLED=0 +RUN addgroup -g 1000 ci && \ + adduser -D -h /home/ci -G ci -u 1000 ci && \ + chown -R ci:ci /home/ci +USER ci ENTRYPOINT ["tail", "-f", "/dev/null" ] -- 2.31.1