From 9e573e076103148e078d5dcc53cd3a9028d8850c Mon Sep 17 00:00:00 2001 From: Ahmed DCHAR Date: Sun, 2 Nov 2025 21:03:38 +0100 Subject: [PATCH] Fix terser docker issue --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71f0153..1448e34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,9 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies (use ci for reproducible installs) and ensure terser is available -# Vite requires terser for production minification when configured; it's optional in Vite but -# must be present if the build expects it. -RUN npm ci && npm install --no-audit --no-fund --save-dev terser +# Install dependencies (use npm install because package-lock.json may not exist in the repo) +# and ensure terser is available for Vite's production minification. +RUN npm install --no-audit --no-fund && npm install --no-audit --no-fund --save-dev terser # Copy source files COPY . .