Fix terser docker issue
This commit is contained in:
parent
a9f7f71d0c
commit
9e573e0761
@ -8,10 +8,9 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies (use ci for reproducible installs) and ensure terser is available
|
# Install dependencies (use npm install because package-lock.json may not exist in the repo)
|
||||||
# Vite requires terser for production minification when configured; it's optional in Vite but
|
# and ensure terser is available for Vite's production minification.
|
||||||
# must be present if the build expects it.
|
RUN npm install --no-audit --no-fund && npm install --no-audit --no-fund --save-dev terser
|
||||||
RUN npm ci && npm install --no-audit --no-fund --save-dev terser
|
|
||||||
|
|
||||||
# Copy source files
|
# Copy source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user