now running as user 1000 so it can read and write the checked out files.
authorErik Brakkee <erik@brakkee.org>
Mon, 11 Nov 2024 21:47:21 +0000 (22:47 +0100)
committerErik Brakkee <erik@brakkee.org>
Mon, 11 Nov 2024 21:47:21 +0000 (22:47 +0100)
images/go.1.23.2/Dockerfile

index 3739897179be0ae53b4c768f2ffaa6f69c04d2ab..aec77ebafc285b72af85eb87733ed92c8d9dda6c 100644 (file)
@@ -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" ]