From 89f00c79a1d307647c4fa2cc55e99e924b73f0cb Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 26 Feb 2026 14:29:50 +0100 Subject: [PATCH] fix(ci): throttle build CPU usage by limiting rayon and libuv threads to prevent host resource starvation --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index a495233b..2a42dcdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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