fix: update Dockerfile CMD to retry Prisma migration on failure
This commit is contained in:
+1
-1
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user