diff --git a/Dockerfile b/Dockerfile index 527797b..03c6a6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /build # 复制依赖清单,利用 Docker 分层缓存(先安装依赖再复制源码) COPY package.json . -RUN npm config set registry https://registry.npm.taobao.org/ && \ +RUN npm config set registry https://registry.npmmirror.com/ && \ npm install --no-audit --no-fund || npm install --no-audit --no-fund --legacy-peer-deps # 复制源码