Run Prisma migrations on container startup
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-06 15:22:08 +01:00
parent 5e326b7ca4
commit e344852311
+1 -1
View File
@@ -22,4 +22,4 @@ COPY --from=builder /app/next.config.mjs ./next.config.mjs
EXPOSE 3000
CMD ["npm", "run", "start", "--", "--hostname", "0.0.0.0", "--port", "3000"]
CMD ["/bin/sh", "-c", "npm run db:migrate && npm run start -- --hostname 0.0.0.0 --port 3000"]