Allow slow dependency downloads in application Docker builds
studio CI and deployment / verify-and-deploy (push) Successful in 6m20s
wiki CI and deployment / verify-and-deploy (push) Failing after 3m6s

This commit is contained in:
2026-10-25 21:28:40 +08:00
parent 3527b23521
commit 3f83dde5b7
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ RUN apt-get update \
FROM base AS dependencies
RUN corepack enable && corepack prepare pnpm@11.25.0 --activate
COPY apps/wiki/package.json apps/wiki/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
RUN pnpm install --frozen-lockfile --fetch-timeout=300000 --network-concurrency=8
FROM dependencies AS build
# .dockerignore excludes docs and operational notes without extra legacy COPY snapshots.
+1 -1
View File
@@ -2,7 +2,7 @@ FROM node:24-bookworm-slim AS build
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@11.25.0 --activate
COPY apps/studio/package.json apps/studio/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
RUN pnpm install --frozen-lockfile --fetch-timeout=300000 --network-concurrency=8
COPY apps/studio/ .
RUN pnpm typecheck && pnpm build
FROM node:24-bookworm-slim
+1 -1
View File
@@ -8,7 +8,7 @@ RUN apt-get update \
FROM base AS dependencies
RUN corepack enable && corepack prepare pnpm@11.25.0 --activate
COPY apps/wiki/package.json apps/wiki/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
RUN pnpm install --frozen-lockfile --fetch-timeout=300000 --network-concurrency=8
FROM dependencies AS build
# .dockerignore excludes docs and operational notes without extra legacy COPY snapshots.
+2
View File
@@ -153,3 +153,5 @@
- `tests/release-mode.sh`:移除旧目录入口或不再适用的 Web-only 发布逻辑。
后续校正:`.gitea/workflows/wiki.yml`、`studio.yml`、`python.yml` 将根目录部署脚本也精确归属到对应项目,防止修改 Studio/Python 部署脚本时错误运行 Wiki CI。
后续构建修复:`Dockerfile`、`apps/wiki/Dockerfile`、`apps/studio/Dockerfile` 将 pnpm 下载超时提高到 300 秒,并发限制为 8,处理服务器下载 Next.js / SWC 大文件超时的问题。