We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5df18e2 + a6a2743 commit c5c4e52Copy full SHA for c5c4e52
2 files changed
prod.dockerfile
@@ -25,4 +25,7 @@ COPY --from=builder /app/src/config ./src/config
25
26
ENV NODE_ENV=production
27
28
-CMD ["node", "dist/src/main.js"]
+COPY scripts/server-start.sh ./server-start.sh
29
+RUN chmod +x ./server-start.sh
30
+
31
+CMD ["./server-start.sh"]
scripts/server-start.sh
@@ -0,0 +1,3 @@
1
+#!/bin/sh
2
+yarn prisma migrate deploy
3
+node dist/src/main.js
0 commit comments