Fix: Permitir build scripts do Prisma no pnpm
This commit is contained in:
@@ -39,7 +39,8 @@ RUN useradd --system --uid 1001 nextjs
|
|||||||
COPY --from=builder /app/package.json /app/pnpm-lock.yaml ./
|
COPY --from=builder /app/package.json /app/pnpm-lock.yaml ./
|
||||||
COPY --from=builder /app/prisma ./prisma
|
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
|
RUN pnpm install --prod --frozen-lockfile
|
||||||
|
|
||||||
# Generate Prisma Client for Debian
|
# Generate Prisma Client for Debian
|
||||||
|
|||||||
Reference in New Issue
Block a user