fix(docker): update the Frontend docker to with the node user perms
This commit is contained in:
parent
76031f01e3
commit
83ce814c92
1 changed files with 4 additions and 4 deletions
|
@ -24,10 +24,10 @@ FROM node:22-alpine
|
|||
WORKDIR /app
|
||||
|
||||
# Copy built assets from the builder stage
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --chown=node:node --from=builder /app/.next ./.next
|
||||
COPY --chown=node:node --from=builder /app/node_modules ./node_modules
|
||||
COPY --chown=node:node --from=builder /app/package.json ./package.json
|
||||
COPY --chown=node:node --from=builder /app/public ./public
|
||||
|
||||
# Run the Docker image as node instead of root
|
||||
USER node
|
||||
|
|
Loading…
Add table
Reference in a new issue