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