配置 pnpm 镜像源
This commit is contained in:
@@ -4,6 +4,9 @@ FROM node:20-alpine AS base
|
||||
# 安装 pnpm
|
||||
RUN corepack enable && corepack prepare pnpm@10.5.2 --activate
|
||||
|
||||
# 配置pnpm镜像源
|
||||
RUN pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 安装构建依赖项
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user