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