Fix Prisma migrations in Docker images

This commit is contained in:
Max Isom 2022-01-06 14:26:37 -06:00
parent 407af033b4
commit 99d7c0978d
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
2 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,10 @@ RUN yarn prisma generate && yarn build
FROM base AS prod
COPY --from=builder /usr/app/dist dist
COPY --from=builder /usr/app/schema.prisma .
COPY --from=builder /usr/app/migrations migrations
RUN yarn prisma generate
ENV DATA_DIR /data