Skip to content

Commit

Permalink
CHORE:update docker compose web command
Browse files Browse the repository at this point in the history
  • Loading branch information
ds2 committed May 19, 2024
1 parent 38da351 commit de7bc31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ COPY . .

RUN npm run build

RUN npx prisma generate

EXPOSE 3000

CMD ["npm", "run", "start:dev"]
6 changes: 5 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ services:
- .:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- db
- db
command: >
sh -c "npx prisma generate &&
npx prisma migrate deploy &&
npm run start:dev"

0 comments on commit de7bc31

Please sign in to comment.