Skip to content

Commit

Permalink
fix: migrate dev in Dockerfile (to push migration into db in each build)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlbDR committed Feb 16, 2024
1 parent bcd97c7 commit b1659bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ COPY ./package.json .
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/public ./dist/public
# RUN npx prisma migrate dev
# RUN node dist/data/seed/seed.js
RUN npm migrate dev
CMD ["node", "dist/app.js"]

2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
- '${DB_PORT}:5432'

rabbitmq:
depends_on:
- db
image: rabbitmq:3.12.12-management
container_name: rabbitmq
hostname: rabbitmq
Expand Down

0 comments on commit b1659bf

Please sign in to comment.