Update Dockerfile to run database migrations before starting the server
Build Check / build (push) Successful in 33s
Build Check / push-image (push) Successful in 55s
Build Check / deploy-coolify (push) Successful in 7s

This commit is contained in:
Space-Banane
2026-07-18 01:08:07 +02:00
parent 3a4dc01b90
commit 7e38f89e37
+1 -1
View File
@@ -30,4 +30,4 @@ COPY --from=builder /app/.next/static ./.next/static
USER nextjs USER nextjs
EXPOSE 3000 EXPOSE 3000
CMD ["node", "server.js"] CMD ["sh", "-c", "node_modules/.bin/prisma migrate deploy && cd dist && node server.js"]