Skip to content

Commit

Permalink
Merge pull request #337 from boostcampwm2023/BE-fix/delete-tmp-db
Browse files Browse the repository at this point in the history
Dockerfile의 prisma migrate 이동
  • Loading branch information
Conut-1 authored May 20, 2024
2 parents 07834f5 + c73a804 commit e7ad17d
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 e7ad17d

Please sign in to comment.