mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
替换默认npm源为华为npm镜像
This commit is contained in:
parent
a7abc701db
commit
db7df811f3
@ -1,7 +1,9 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
|
# 设置Node-Sass的镜像地址
|
||||||
RUN npm set registry https://registry.npm.taobao.org
|
RUN npm config set sass_binary_site https://repo.huaweicloud.com/node-sass
|
||||||
|
# 设置npm镜像
|
||||||
|
RUN npm config set registry https://repo.huaweicloud.com/repository/npm/
|
||||||
COPY package.json /build/package.json
|
COPY package.json /build/package.json
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY ./ /build
|
COPY ./ /build
|
||||||
|
Loading…
Reference in New Issue
Block a user