build: 更新 Dockerfile 中的 npm 镜像源
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- 将 npm 配置中的 registry 地址从淘宝源修改为 npmmirror 源 - 该更改旨在解决使用旧版 Node.js 时安装 axios 等包出现的错误
This commit is contained in:
parent
39451d1803
commit
9c97d2dc3b
@ -13,7 +13,7 @@ RUN apk add --no-cache tzdata
|
||||
ENV TZ="Asia/Shanghai"
|
||||
|
||||
# 如果各公司有自己的私有源,可以替换registry地址,如使用官方源注释下一行
|
||||
RUN npm config set registry https://registry.npm.taobao.org
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 安装开发期依赖
|
||||
COPY package.json ./package.json
|
||||
|
Loading…
Reference in New Issue
Block a user