Skip to content

Commit

Permalink
Fixed duplicate copies from containerfile, updated .dockerignore to a…
Browse files Browse the repository at this point in the history
…llow copying of the required assets for standalone build
  • Loading branch information
ejmg committed Jul 29, 2024
1 parent c367288 commit e0624a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
!pnpm-lock.yaml

# nextjs files
!prisma/
!public/
!src/
!.next/
5 changes: 0 additions & 5 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ RUN chown nextjs:nodejs .next
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

USER nextjs

EXPOSE 3000
Expand Down

0 comments on commit e0624a3

Please sign in to comment.