lushdog@outlook.com 1 month ago
parent
commit
968983f5e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -10,8 +10,8 @@ ENV npm_config_registry=https://registry.npmjs.org
 # SOL_ENDPOINT 可以在运行时传递,也可以作为非敏感配置保留
 ARG SOL_ENDPOINT
 
-# 安装 pnpm
-RUN corepack enable && corepack prepare pnpm@latest --activate
+# 安装 pnpm(Alpine 镜像可能不包含 corepack,改用 npm 全局安装)
+RUN npm install -g pnpm
 
 # 设置工作目录
 WORKDIR /app