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:
parent
a8799100e5
commit
0e6e2b72d1
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci --ignore-scripts
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue