Skip to content

Commit 1844d3d

Browse files
Merge pull request cool-team-official#25 from GCSLaoLi/master
替换默认npm源为华为npm镜像
2 parents a7abc70 + db7df81 commit 1844d3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM node:lts-alpine
22
WORKDIR /build
3-
RUN npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
4-
RUN npm set registry https://registry.npm.taobao.org
3+
# 设置Node-Sass的镜像地址
4+
RUN npm config set sass_binary_site https://repo.huaweicloud.com/node-sass
5+
# 设置npm镜像
6+
RUN npm config set registry https://repo.huaweicloud.com/repository/npm/
57
COPY package.json /build/package.json
68
RUN npm install
79
COPY ./ /build

0 commit comments

Comments
 (0)