Chore/docker file non root (#5479)

* update dockerfile

* Update Dockerfile
This commit is contained in:
Henry Heng 2025-11-15 18:09:31 +00:00 committed by GitHub
parent 2414057c08
commit 366d38b861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ COPY . .
RUN pnpm install && \
pnpm build
# Give the node user ownership of the application files
RUN chown -R node:node .
# Switch to non-root user (node user already exists in node:20-alpine)
USER node