build(docker): use --legacy-peer-deps for frontend npm install in container

This commit is contained in:
Chenwei Jiang 2025-08-21 16:48:36 +08:00
parent 7591f001c1
commit f6cab715e6
Signed by: cheverjohn
GPG key ID: ADC4815BFE960182
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ ENV npm_config_registry=https://registry.npmmirror.com
WORKDIR /app
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN npm install --no-audit --no-fund
RUN npm install --no-audit --no-fund --legacy-peer-deps
COPY . .
RUN npm run build

View file

@ -10,7 +10,7 @@ WORKDIR /app
# Install frontend deps and build (root project)
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN npm install --no-audit --no-fund
RUN npm install --no-audit --no-fund --legacy-peer-deps
COPY . .
RUN npm run build