Fix: Permitir build scripts do Prisma no pnpm

This commit is contained in:
2026-02-13 18:59:44 +00:00
parent cb7f9203f7
commit 94fa143661

View File

@@ -39,7 +39,8 @@ RUN useradd --system --uid 1001 nextjs
COPY --from=builder /app/package.json /app/pnpm-lock.yaml ./
COPY --from=builder /app/prisma ./prisma
# Install ONLY production dependencies + Prisma
# Install ONLY production dependencies + Prisma (permitir build scripts)
RUN pnpm config set ignore-scripts false
RUN pnpm install --prod --frozen-lockfile
# Generate Prisma Client for Debian