From af800b150c649dde0af963f90a71f4bcd7f6faee Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 6 Feb 2025 12:05:05 +0530 Subject: [PATCH] Use half the number of cores during docker image build --- vendor/docker-nixos/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/docker-nixos/build.sh b/vendor/docker-nixos/build.sh index 022e713..364760d 100755 --- a/vendor/docker-nixos/build.sh +++ b/vendor/docker-nixos/build.sh @@ -8,6 +8,7 @@ if [ -z "$NIXOS_TAG" ]; then fi docker build \ + --cpus=$(( $(nproc) / 2 )) \ -t "git.devcomp.xyz/devcomp/nixos:$NIXOS_TAG" \ -f Dockerfile \ --push .