From cfeee5dc2a25a041839f4e6e36aadbc049d7512c Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 13 Mar 2026 00:44:41 -0500 Subject: [PATCH] fix: copy prisma.config.ts into runner so db push can find datasource URL Without prisma.config.ts in the runner stage, prisma db push has no datasource URL (schema.prisma no longer carries url in Prisma 7) and silently skips creating the database. Also add set -e to the entrypoint so any db push failure is visible in logs and stops the container. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index ac0eb0f..f8de648 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,7 @@ 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 COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma +COPY --from=builder --chown=nextjs:nodejs /app/prisma.config.ts ./prisma.config.ts COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules # Create data directory AFTER all copies so permissions are never clobbered @@ -58,7 +59,10 @@ ENV PORT=3000 # script to run migrations before starting COPY --chown=nextjs:nodejs <