From 0e6e2b72d131555e025296168014f8344dbce310 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 10 Mar 2026 08:00:55 -0500 Subject: [PATCH] Skip postinstall during npm ci in deps stage The postinstall script runs prisma generate, but the prisma schema files aren't available in the deps stage (only package.json is copied). The builder stage already runs prisma generate after copying all files. Made-with: Cursor --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7f6b489..4c06273 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ FROM base AS deps WORKDIR /app COPY package.json package-lock.json ./ -RUN npm ci +RUN npm ci --ignore-scripts FROM base AS builder WORKDIR /app