Skip to content

Commit

Permalink
fix: exit migrator image when migrations are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 23, 2025
1 parent c5d3c2c commit 7adb5f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ USER nextjs

EXPOSE 3000

CMD ["bun", "run", "server.js"]
CMD bun run server.js
2 changes: 1 addition & 1 deletion migrations.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ COPY src/server/db ./src/server/db
COPY src/env.ts ./src/env.ts
COPY .env ./.env

CMD ["bun", "run", "db:migrate"]
CMD bun run db:migrate && exit 0

0 comments on commit 7adb5f6

Please sign in to comment.