fix: update Dockerfile CMD to retry Prisma migration on failure

This commit is contained in:
Nils-Johan Gynther
2026-04-15 20:15:08 +02:00
parent 29d4cef688
commit 2e7c849687
+1 -1
View File
@@ -28,4 +28,4 @@ COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
EXPOSE 8080 EXPOSE 8080
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main"] CMD ["sh", "-c", "until npx prisma migrate deploy; do echo 'Migration failed, retrying in 5s...'; sleep 5; done && node dist/main"]