Use half the number of cores during docker image build

This commit is contained in:
Erica Marigold 2025-02-06 12:05:05 +05:30
parent 715c30fc5e
commit af800b150c
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -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 .