fix: 修复构建docker由于前端因镜像源不一致导致的报错

This commit is contained in:
xiamuceer-j
2026-01-20 09:26:48 +08:00
parent 444ba9ddba
commit ebb3506173
+3
View File
@@ -10,6 +10,9 @@ COPY frontend/package*.json ./
# 使用国内npm镜像加速 # 使用国内npm镜像加速
RUN npm config set registry https://registry.npmmirror.com RUN npm config set registry https://registry.npmmirror.com
# 删除 package-lock.json 以SC避免因镜像源不一致导致的 404 错误
RUN rm -f package-lock.json
# 安装依赖 # 安装依赖
RUN npm install RUN npm install