From faef48e85d88abec0c82af849e8454ace1fd53cb Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 6 Feb 2025 12:07:45 +0530 Subject: [PATCH] `--cpus` is not a flag for `docker build`, use `cpulimit` instead --- vendor/docker-nixos/build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vendor/docker-nixos/build.sh b/vendor/docker-nixos/build.sh index 364760d..cec59df 100755 --- a/vendor/docker-nixos/build.sh +++ b/vendor/docker-nixos/build.sh @@ -7,8 +7,7 @@ if [ -z "$NIXOS_TAG" ]; then exit 1 fi -docker build \ - --cpus=$(( $(nproc) / 2 )) \ +cpulimit -l 50 docker build \ -t "git.devcomp.xyz/devcomp/nixos:$NIXOS_TAG" \ -f Dockerfile \ --push .