fix: 显式指定 npm 镜像源
This commit is contained in:
@@ -8,8 +8,8 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# 安装 pnpm,避免 Corepack 元数据/签名服务不可用导致构建失败
|
||||
RUN npm install --global pnpm@10.15.0
|
||||
# 安装 pnpm,显式指定镜像源,避免继承开发机不可用的 npm 代理
|
||||
RUN npm install --global pnpm@10.15.0 --registry=https://registry.npmmirror.com
|
||||
RUN pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 限制 Node 堆,防止前端构建耗尽宿主机内存
|
||||
|
||||
Reference in New Issue
Block a user