Fix docker image generation
This commit is contained in:
parent
5cdf0d995b
commit
a9f7f71d0c
@ -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 . .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user