Fix docker image generation

This commit is contained in:
Ahmed DCHAR 2025-11-02 20:51:10 +01:00
parent 5cdf0d995b
commit a9f7f71d0c

View File

@ -8,8 +8,10 @@ WORKDIR /app
# Copy package files # Copy package files
COPY package*.json ./ COPY package*.json ./
# Install dependencies # Install dependencies (use ci for reproducible installs) and ensure terser is available
RUN npm install # 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
# Copy source files # Copy source files
COPY . . COPY . .