From c7ba33fcb8bc9bdf7ad9638502eb0c357022a4e4 Mon Sep 17 00:00:00 2001 From: "T. Narantuya" Date: Fri, 29 Aug 2025 10:58:01 +0900 Subject: [PATCH] Update Dockerfile to skip lifecycle scripts during production dependency installation --- apps/bff/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/bff/Dockerfile b/apps/bff/Dockerfile index ebadef29..32873fb5 100644 --- a/apps/bff/Dockerfile +++ b/apps/bff/Dockerfile @@ -75,9 +75,10 @@ COPY pnpm-workspace.yaml package.json pnpm-lock.yaml ./ COPY packages/shared/package.json ./packages/shared/ COPY apps/bff/package.json ./apps/bff/ -# Install only production dependencies; run scripts (needed for bcrypt/prisma) but disable Husky +# Install only production dependencies; skip lifecycle scripts to avoid Husky prepare +# Prisma client and native assets are generated in the builder stage and copied below ENV HUSKY=0 -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Copy built applications and Prisma client COPY --from=builder /app/packages/shared/dist ./packages/shared/dist