更新 dockerfile
CI/CD / build (push) Failing after 3m37s Details

This commit is contained in:
zhaojun 2026-01-09 13:28:28 +08:00
parent c0a0a2070f
commit 7d19186682
1 changed files with 1 additions and 7 deletions

View File

@ -1,20 +1,14 @@
# 使用官方Node.js镜像
FROM node:20-alpine
# 安装 pnpm
RUN npm install -g pnpm
# 设置工作目录
WORKDIR /build
# 复制整个项目(包括 packages 目录)
COPY . .
# 使用国内镜像源
RUN pnpm config set registry https://registry.npmmirror.com/
# 安装所有依赖(包括 workspace 依赖)
RUN pnpm install
RUN npm install -g pnpm && pnpm install
# 构建生产版本
RUN pnpm run build