Fix terser docker issue

This commit is contained in:
Ahmed DCHAR 2025-11-02 21:03:38 +01:00
parent a9f7f71d0c
commit 9e573e0761

View File

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