From 4e954af55cb0dab9c8160afa1ad5e4729b673323 Mon Sep 17 00:00:00 2001 From: 111 Date: Fri, 23 Jan 2026 15:56:36 +0800 Subject: [PATCH] fix: use npm install instead of npm ci (no lock file) --- deploy/Dockerfile.frontend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/Dockerfile.frontend b/deploy/Dockerfile.frontend index 5f6d3f6..180f621 100644 --- a/deploy/Dockerfile.frontend +++ b/deploy/Dockerfile.frontend @@ -3,8 +3,8 @@ FROM node:20-alpine as builder WORKDIR /app # 安装依赖(使用淘宝镜像) -COPY frontend/package*.json ./ -RUN npm config set registry https://registry.npmmirror.com && npm ci +COPY frontend/package.json ./ +RUN npm config set registry https://registry.npmmirror.com && npm install # 构建 COPY frontend/ .