1 parent e8427ef commit df0cf18Copy full SHA for df0cf18
1 file changed
Dockerfile
@@ -3,11 +3,12 @@ FROM node:20-slim AS builder
3
4
WORKDIR /app
5
6
-# Copy package files
7
-COPY package.json package-lock.json ./
8
9
-# Use 'install' instead of 'ci' to force resolution of Linux native bindings
10
-RUN npm install --legacy-peer-deps
+# Copy package.json only (ignore lockfile for build to fix native deps)
+COPY package.json ./
+
+# Delete lockfile to force Linux native binary resolution
11
+RUN rm -f package-lock.json && npm install --legacy-peer-deps
12
13
# Copy source
14
COPY . .
0 commit comments