Skip to content

Commit db7df81

Browse files
committed
替换默认npm源为华为npm镜像
1 parent a7abc70 commit db7df81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
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)