From 0291f9a6c1028e1296034bb16af80845aeed8e30 Mon Sep 17 00:00:00 2001 From: Denis Shatskiy Date: Mon, 7 Jul 2025 13:16:35 +0700 Subject: [PATCH] Fix(ci): Rebuild npm tree in Docker to fix cross-platform issue --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6984e91..ed238a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM node:18-slim AS frontend-builder WORKDIR /app/frontend -# Copy package config and install dependencies -COPY frontend/package.json frontend/package-lock.json* ./ -RUN npm ci +# Copy package.json ONLY and install dependencies from scratch +# This avoids issues with lock files generated on different OS (e.g. Windows -> Linux) +COPY frontend/package.json ./ +RUN npm install # Copy rest of the frontend code and build COPY frontend/ .