fix: use --legacy-peer-deps for npm ci

Resolves peer dependency conflict with @testing-library/react-hooks
and @types/react versions.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Chever John 2026-06-17 10:18:45 +08:00
parent 5591c705de
commit 6558d137d9
No known key found for this signature in database
GPG Key ID: 2894D52ED1211DF0

View File

@ -2,7 +2,7 @@ ARG BASE_REGISTRY=harbor-in-k3s.cheverjohn.me/library
FROM ${BASE_REGISTRY}/node:20-alpine AS builder FROM ${BASE_REGISTRY}/node:20-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci RUN npm ci --legacy-peer-deps
COPY . . COPY . .
RUN npm run build RUN npm run build