docker build时NPM使用镜像

dev
John Smith 3 months ago
parent 187d45e6d9
commit 75938141f0

@ -8,7 +8,7 @@ WORKDIR "${BASE_PATH}/frontend"
# 前端依赖 # 前端依赖
COPY frontend/package.json ./ COPY frontend/package.json ./
RUN npm i RUN npm i --registry=https://registry.npmmirror.com
# 编译前端 # 编译前端
COPY frontend ./ COPY frontend ./

Loading…
Cancel
Save