diff --git a/app.dockerfile b/app.dockerfile index f19ec4a..6878528 100644 --- a/app.dockerfile +++ b/app.dockerfile @@ -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