fix: remove unnecessary node_modules copy from Dockerfile
Standalone Next.js output includes all required dependencies in the /app/.next/standalone directory, making the separate node_modules copy unnecessary. This reduces image size and build complexity. Closes task 6.6. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e146de2e05
commit
38b270140e
2 changed files with 1 additions and 4 deletions
|
|
@ -25,9 +25,6 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
|||
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
|
||||
# Copy node_modules for dependencies
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
|
||||
|
||||
# Copy drizzle migrations
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/drizzle ./drizzle
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue