run migrations on docker build

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-12 07:34:48 +02:00
parent 2a99eee71c
commit 8c75b12c40

View File

@@ -21,6 +21,7 @@ RUN bun install
COPY . .
WORKDIR /app/apps/backend
RUN bunx prisma generate
RUN bunx prisma migrate deploy
WORKDIR /app/apps/backend
EXPOSE ${PORT}
CMD ["bun", "start"]