File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,10 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
4545COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
4646COPY --from=builder --chown=nextjs:nodejs /app/public ./public
4747
48- # Prisma: migration 적용에 필요한 CLI + schema + 이미 생성된 client
48+ # Prisma migrate deploy 는 CLI 의 transitive deps(effect 등)가 필요하므로
49+ # standalone trace 의 최소 node_modules 대신 builder 의 전체 install tree 를 사용한다.
4950COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
50- COPY --from=builder --chown=nextjs:nodejs /app/node_modules/prisma ./node_modules/prisma
51- COPY --from=builder --chown=nextjs:nodejs /app/node_modules/@prisma ./node_modules/@prisma
52- COPY --from=builder --chown=nextjs:nodejs /app/node_modules/.prisma ./node_modules/.prisma
51+ COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
5352
5453# Entrypoint: migrate deploy → node server.js
5554COPY --chown=nextjs:nodejs deploy/entrypoint.sh /app/entrypoint.sh
You can’t perform that action at this time.
0 commit comments