feat: runtime migration

This commit is contained in:
Methapon2001 2024-04-03 09:28:40 +07:00
parent 58cc1ef8f7
commit 7f81331b3e
2 changed files with 7 additions and 1 deletions

View file

@ -28,4 +28,6 @@ COPY --from=deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist
COPY --from=base /app/static /app/static
CMD ["pnpm", "run", "start"]
RUN chmod u+x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

4
entrypoint.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
pnpm prisma migrate deploy
pnpm run start