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/ .