Fix Docker builds by installing deps without strict lockfile platform mismatches.
Windows-generated locks can omit Linux optional packages; npm install keeps the image buildable. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-1
@@ -6,7 +6,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-cert
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY package.json package-lock.json ./
|
||||
COPY prisma ./prisma
|
||||
RUN npm ci
|
||||
# Use npm install (not ci): lockfiles generated on Windows can omit Linux-only optional packages (@emnapi/*).
|
||||
RUN npm install
|
||||
|
||||
FROM node:22-bookworm-slim AS builder
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user