Chore/docker file non root (#5479)
* update dockerfile * Update Dockerfile
This commit is contained in:
parent
2414057c08
commit
366d38b861
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue