diff --git a/frontend/.npmrc b/frontend/.npmrc new file mode 100644 index 0000000..7549542 --- /dev/null +++ b/frontend/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmmirror.com diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 1cad20e..e428a3b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY package.json package-lock.json* ./ # 安装依赖 -RUN npm install +RUN npm install --registry=https://registry.npmmirror.com # 复制源码 COPY . .