diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..7549542 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmmirror.com diff --git a/Dockerfile b/Dockerfile index 3699d59..17e6f60 100644 --- a/Dockerfile +++ b/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 . .