diff --git a/Dockerfile b/Dockerfile index fca0a66..8758ddd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ WORKDIR /app # 2. 复制依赖文件(优先层) COPY package.json package-lock.json ./ -RUN npm ci +RUN npm ci --legacy-peer-deps + # 3. 复制源码并构建 COPY . .