From 6d14fc70af47ec93542da7269cb1707f97e78612 Mon Sep 17 00:00:00 2001 From: Anatoli Nicolae Date: Wed, 20 Mar 2024 16:41:43 +0100 Subject: [PATCH] Keep whole database folder for secure migrations Signed-off-by: Anatoli Nicolae --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9e853f96..e1c258c39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . @@ -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