配置 pnpm 镜像源

This commit is contained in:
2025-04-19 18:21:31 +08:00
parent 118149b47b
commit 1184264a04

View File

@@ -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