fix: 优化构建速度,后端容器名
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 3m31s

This commit is contained in:
lzh
2025-12-18 14:03:54 +08:00
parent 1c04ff0d7b
commit 874c06fa51
3 changed files with 21 additions and 6 deletions

View File

@@ -28,8 +28,11 @@ COPY apps apps
COPY internal internal
# 安装依赖
# 使用 --frozen-lockfile 确保版本一致
RUN pnpm install --frozen-lockfile
# 使用 BuildKit 缓存挂载加速依赖安装
# 缓存 pnpm store即使 package.json 变了,已下载的包也能复用
# pnpm store 默认路径:~/.local/share/pnpm/store (Linux)
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
pnpm install --frozen-lockfile
# 构建指定项目 (根据 package.json 里的 scripts)
# 这里我们构建 antd 版本