Remove --accept-data-loss from Dockerfile prisma db push

This flag allows Prisma to drop columns/tables when the schema changes,
which risks data loss on production upgrades. Without the flag, Prisma
will error instead of silently destroying data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-18 13:26:55 +02:00
parent 21953178ff
commit 1ef34445a9
+1 -1
View File
@@ -46,4 +46,4 @@ USER nextjs
EXPOSE 3000 EXPOSE 3000
CMD ["sh", "-c", "npx prisma db push --accept-data-loss --skip-generate && npx prisma db seed && node server.js"] CMD ["sh", "-c", "npx prisma db push --skip-generate && npx prisma db seed && node server.js"]