This commit is contained in:
@@ -37,8 +37,9 @@ COPY internal internal
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store \
|
||||
pnpm install --frozen-lockfile --network-concurrency 2
|
||||
|
||||
# 构建指定项目
|
||||
RUN pnpm build:antd
|
||||
# 限制turbo并发构建,降低资源占用(仅CI/CD构建时生效)
|
||||
# 直接使用turbo命令并限制并发数,避免影响本地开发配置
|
||||
RUN pnpm exec turbo build --filter=@vben/web-antd --concurrency=2
|
||||
|
||||
# ==============================
|
||||
# 2️⃣ 运行阶段
|
||||
|
||||
@@ -14,8 +14,13 @@ WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
# 安装依赖
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN pnpm run build --filter=\!./docs
|
||||
# network-concurrency 限制并发下载,降低带宽占用
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
pnpm install --frozen-lockfile --network-concurrency 2
|
||||
|
||||
# 限制turbo并发构建,降低资源占用(仅CI/CD构建时生效)
|
||||
# 直接使用turbo命令并限制并发数,避免影响本地开发配置
|
||||
RUN pnpm exec turbo build --filter=\!./docs --concurrency=2
|
||||
|
||||
RUN echo "Builder Success 🎉"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user