feat: runtime migration
This commit is contained in:
parent
58cc1ef8f7
commit
7f81331b3e
2 changed files with 7 additions and 1 deletions
|
|
@ -28,4 +28,6 @@ COPY --from=deps /app/node_modules /app/node_modules
|
||||||
COPY --from=build /app/dist /app/dist
|
COPY --from=build /app/dist /app/dist
|
||||||
COPY --from=base /app/static /app/static
|
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
4
entrypoint.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pnpm prisma migrate deploy
|
||||||
|
pnpm run start
|
||||||
Loading…
Add table
Add a link
Reference in a new issue