Skip to content

Commit f0c2ee1

Browse files
committed
fix: Update user ID in Dockerfile for non-root user
1 parent 8425ac9 commit f0c2ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ COPY src/ ./src/
2020
RUN mkdir -p /app/config
2121

2222
# Create non-root user
23-
RUN addgroup -g 1000 -S nodejs && \
24-
adduser -S slaking -u 1000
23+
RUN addgroup -g 1001 -S nodejs && \
24+
adduser -S slaking -u 1001 -G nodejs
2525

2626
# Change ownership of the app directory
2727
RUN chown -R slaking:nodejs /app

0 commit comments

Comments
 (0)