File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,13 +115,9 @@ COPY --from=builder --link /srv/app/public ./public
115115
116116# Automatically leverage output traces to reduce image size
117117# https://nextjs.org/docs/advanced-features/output-file-tracing
118- COPY --from=builder --link /srv/app/.next/standalone ./
119- COPY --from=builder --link /srv/app/public/* ./public/
120- COPY --from=builder --link /srv/app/.next/static ./.next/static
121-
122- RUN chown -R nextjs:nodejs ./
123- RUN chown -R nextjs:nodejs ./public/
124- RUN chown -R nextjs:nodejs ./.next/static
118+ COPY --from=builder --link --chown=nextjs:nodejs /srv/app/.next/standalone ./
119+ COPY --from=builder --link --chown=nextjs:nodejs /srv/app/public/* ./public/
120+ COPY --from=builder --link --chown=nextjs:nodejs /srv/app/.next/static ./.next/static
125121
126122USER nextjs
127123
You can’t perform that action at this time.
0 commit comments