Fix(ci): Rebuild npm tree in Docker to fix cross-platform issue
Publish Docker image / build-and-push (push) Successful in 4m47s

This commit is contained in:
2025-07-07 13:16:35 +07:00
parent 8450b62f33
commit 0291f9a6c1
+4 -3
View File
@@ -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/ .