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