Skip to content

Commit

Permalink
fix: prisma migrate를 entrypoint로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
Conut-1 committed May 20, 2024
1 parent 3c62c58 commit c73a804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions nestjs-BE/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ RUN npm ci

COPY ./ ./

RUN npx prisma migrate dev

EXPOSE 3000

CMD ["npm", "start"]
ENTRYPOINT ["./entrypoint.sh"]
3 changes: 3 additions & 0 deletions nestjs-BE/server/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
npx prisma migrate dev
npm start

0 comments on commit c73a804

Please sign in to comment.