添加了依赖安装的代理
This commit is contained in:
1 parent
ca112ae1dc
commit
5ab7ebbe5a
1 file changed
+2
-1
+2
-1
@@ -8,7 +8,8 @@ WORKDIR /app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
RUN npm install
|
RUN npm config set registry https://registry.npmmirror.com && \
|
||||||
|
npm install
|
||||||
|
|
||||||
# 复制项目文件
|
# 复制项目文件
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
Reference in new issue
Block a user