mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Fix Prisma migrations in Docker images
This commit is contained in:
parent
407af033b4
commit
99d7c0978d
|
@ -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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Prisma client and migrations are no longer broken in built Docker images
|
||||||
|
|
||||||
## [0.3.0] - 2022-01-05
|
## [0.3.0] - 2022-01-05
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -30,6 +30,10 @@ RUN yarn prisma generate && yarn build
|
||||||
FROM base AS prod
|
FROM base AS prod
|
||||||
|
|
||||||
COPY --from=builder /usr/app/dist dist
|
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
|
ENV DATA_DIR /data
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue