fix: 优化构建速度,后端容器名
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 3m31s
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 3m31s
This commit is contained in:
@@ -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 版本
|
||||
|
||||
Reference in New Issue
Block a user