Skip to content

Commit

Permalink
♻️ copy all before copying the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredkiss3 committed Sep 12, 2024
1 parent c2e9c2e commit 1338d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ ENV NEXT_TELEMETRY_DISABLED=1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

# Don't forget to put the build cache in the artifact
COPY . .

COPY --from=deps /app/node_modules ./node_modules

COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/standalone/static

COPY . .

USER nextjs
EXPOSE 80
Expand Down

0 comments on commit 1338d4e

Please sign in to comment.