From b4f8b1c0bc33592c616e9102fe7899aba83978bd Mon Sep 17 00:00:00 2001 From: Wong Chee Hong Date: Mon, 13 Nov 2023 18:35:48 +0800 Subject: [PATCH] copy prisma folder in build step --- user_service/Dockerfile.prod | 1 + 1 file changed, 1 insertion(+) diff --git a/user_service/Dockerfile.prod b/user_service/Dockerfile.prod index 6b3d5e7d..703d255a 100644 --- a/user_service/Dockerfile.prod +++ b/user_service/Dockerfile.prod @@ -12,6 +12,7 @@ RUN npm run build FROM node:18-alpine WORKDIR /usr/src/app COPY package*.json ./ +COPY prisma ./ RUN npm ci --only=production COPY --from=builder /app/node_modules/@prisma/client /app/node_modules/@prisma/client COPY --from=builder /app/dist ./dist