Update Dockerfile

This commit is contained in:
Henry Heng 2025-11-15 16:49:08 +00:00 committed by GitHub
parent a7959e8d62
commit afa6acb7cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -34,9 +34,12 @@ 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
EXPOSE 3000
CMD [ "pnpm", "start" ]
CMD [ "pnpm", "start" ]