From f9ce6f82213059949c3fbf8fee90b8022f0dd54d Mon Sep 17 00:00:00 2001 From: Sulthan Zaki Date: Sat, 18 Jul 2026 13:58:15 +0700 Subject: [PATCH] fix: revert npm ci back to npm install in docker builds package-lock.json was generated on Windows and only locks @esbuild/win32-x64, no linux-x64 entry. npm ci installs strictly from lockfile and fails with "package @esbuild/linux-x64 could not be found" on Linux build hosts. npm install resolves the correct platform binary even when absent from the lock. Co-Authored-By: Claude Sonnet 5 --- docker/Dockerfile | 4 ++-- docker/nginx.Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 66ef715..d0a76d8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ FROM node:20-alpine AS node-builder WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm ci --ignore-scripts +COPY package.json ./ +RUN npm install --ignore-scripts COPY . . RUN npm run build:icons && npm run build diff --git a/docker/nginx.Dockerfile b/docker/nginx.Dockerfile index 97842a5..a573ab9 100644 --- a/docker/nginx.Dockerfile +++ b/docker/nginx.Dockerfile @@ -1,7 +1,7 @@ FROM node:20-alpine AS node-builder WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm ci --ignore-scripts +COPY package.json ./ +RUN npm install --ignore-scripts COPY . . RUN npm run build:icons && npm run build