fix(ci): throttle build CPU usage by limiting rayon and libuv threads to prevent host resource starvation
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Successful in 1m46s
Build & Deploy / 🏗️ Build (push) Successful in 12m0s
Build & Deploy / 🚀 Deploy (push) Successful in 34s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled

This commit is contained in:
2026-02-26 14:29:50 +01:00
parent 98ac3dbd10
commit 89f00c79a1

View File

@@ -43,6 +43,11 @@ CMD ["pnpm", "dev:local"]
FROM base AS builder
# Limit memory to 1GB to prevent ResourceExhausted in combination with worker limits
ENV NODE_OPTIONS="--max-old-space-size=1024"
# Force Turbopack (Rust/Rayon) and Node.js to use strictly 1 thread to avoid starving the Gitea Runner VPS CPU
ENV RAYON_NUM_THREADS=1
ENV UV_THREADPOOL_SIZE=1
RUN pnpm build
# Stage 3: Runner