Skip to content

Commit c5c4e52

Browse files
authored
Merge pull request #134 from ChooseTale/dev
fix: 서버 시작 스크립트 제작
2 parents 5df18e2 + a6a2743 commit c5c4e52

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

prod.dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ COPY --from=builder /app/src/config ./src/config
2525

2626
ENV NODE_ENV=production
2727

28-
CMD ["node", "dist/src/main.js"]
28+
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
yarn prisma migrate deploy
3+
node dist/src/main.js

0 commit comments

Comments
 (0)