Skip to content

Commit 6b033a6

Browse files
author
ThomasSamson
committed
Fix pwa build
1 parent e3d5b77 commit 6b033a6

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

pwa/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

126122
USER nextjs
127123

0 commit comments

Comments
 (0)