替换默认镜像源为华为npm镜像

This commit is contained in:
LiDong 2021-05-28 11:30:16 +08:00
parent 1c8fe6c181
commit adab9cb4cf

View File

@ -9,7 +9,7 @@ RUN apk add --no-cache tzdata
ENV TZ="Asia/Shanghai"
# 如果各公司有自己的私有源可以替换registry地址,如使用官方源注释下一行
RUN npm set registry https://registry.npm.taobao.org
RUN npm config set registry https://repo.huaweicloud.com/repository/npm/
# 安装开发期依赖
COPY package.json ./package.json