Skip to content

Commit

Permalink
Keep whole database folder for secure migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoli Nicolae <[email protected]>
  • Loading branch information
anatolinicolae committed Mar 20, 2024
1 parent 9087484 commit 6d14fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ WORKDIR /myapp

COPY --from=deps /myapp/node_modules /myapp/node_modules

ADD /app/database/schema.prisma ./app/database/schema.prisma
ADD /app/database ./app/database
RUN npx prisma generate

ADD . .
Expand All @@ -47,7 +47,7 @@ WORKDIR /myapp

COPY --from=production-deps /myapp/node_modules /myapp/node_modules
COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma
COPY --from=build /myapp/app/database/schema.prisma /myapp/app/database/schema.prisma
COPY --from=build /myapp/app/database /myapp/app/database

COPY --from=build /myapp/build /myapp/build
COPY --from=build /myapp/public /myapp/public
Expand Down

0 comments on commit 6d14fc7

Please sign in to comment.