From 3ac4d95a4168c3a1a7e6963bd9cd045a49221bff Mon Sep 17 00:00:00 2001 From: Giancarmine Salucci Date: Tue, 15 Apr 2025 13:32:23 +0200 Subject: [PATCH] fix perms --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40f9a32..ab4b61d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:23-alpine -# Create a non-root user -RUN addgroup -S appgroup && adduser -S appuser -G appgroup +# Create a non-root user with specific UID and GID +RUN addgroup -g 1000 -S appgroup && adduser -u 1000 -S -G appgroup appuser # Set working directory WORKDIR /home/appuser/app @@ -28,4 +28,4 @@ ENV THREAD_COUNT=0 USER appuser # Run the application - using JSON array format -CMD ["sh", "-c", "node main.js ${THREAD_COUNT}"] \ No newline at end of file +CMD ["sh", "-c", "node main.js ${THREAD_COUNT}"]