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
This commit is contained in:
Randall Stillwell 2026-03-10 08:00:55 -05:00
parent a8799100e5
commit 0e6e2b72d1

View file

@ -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