fix(deploy): prevent runtime prisma schema mutation
Deploy Canina / deploy (push) Failing after 5s

This commit is contained in:
devops committed 2026-10-15 06:18:47 +00:00
1 parent c04f1675f6
commit 73f5d6d278
1 file changed
+1 -1
+1 -1
View File
@@ -45,4 +45,4 @@ COPY --chown=node:node --from=builder /app/src ./src
COPY --chown=node:node --from=builder /app/test ./test
EXPOSE 3000
USER node
CMD ["sh", "-c", "npx prisma db push --skip-generate && if [ -f dist/src/main.js ]; then node dist/src/main.js; else node dist/main.js; fi"]
CMD ["node", "dist/main.js"]