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

@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Prisma client and migrations are no longer broken in built Docker images
## [0.3.0] - 2022-01-05
### Changed

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