Updated dockerfile
This commit is contained in:
parent
c76fcb07f2
commit
8d76dfcf93
|
@ -22,10 +22,10 @@ RUN adduser -S nextjs -u 1001
|
|||
|
||||
# You only need to copy next.config.js if you are NOT using the default configuration
|
||||
# COPY --from=builder /app/next.config.js ./
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
|
||||
USER nextjs
|
||||
|
||||
|
|
Loading…
Reference in a new issue