feat: run migrations via entrypoint

This commit is contained in:
Henry
2025-06-13 23:38:15 +01:00
parent 2b3eef8c63
commit feca755b8b
3 changed files with 18 additions and 2 deletions

View File

@@ -75,6 +75,5 @@ ARG PORT=3000
ENV PORT=${PORT}
EXPOSE ${PORT}
# Run migration on start for now (until we have a better way to handle this)
CMD ["sh", "-c", "cd /app && pnpm db:migrate && cd /app/apps/web && pnpm start"]
CMD ["./entrypoint.sh"]