We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be4a189 commit a6a2743Copy full SHA for a6a2743
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