diff --git a/Dockerfile b/Dockerfile index 53076c9..71f0153 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,10 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies -RUN npm install +# 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 # Copy source files COPY . .