Update Dockerfile
This commit is contained in:
parent
a7959e8d62
commit
afa6acb7cc
|
|
@ -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