Use half the number of cores during docker image build
This commit is contained in:
parent
715c30fc5e
commit
af800b150c
1 changed files with 1 additions and 0 deletions
1
vendor/docker-nixos/build.sh
vendored
1
vendor/docker-nixos/build.sh
vendored
|
@ -8,6 +8,7 @@ if [ -z "$NIXOS_TAG" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
|
--cpus=$(( $(nproc) / 2 )) \
|
||||||
-t "git.devcomp.xyz/devcomp/nixos:$NIXOS_TAG" \
|
-t "git.devcomp.xyz/devcomp/nixos:$NIXOS_TAG" \
|
||||||
-f Dockerfile \
|
-f Dockerfile \
|
||||||
--push .
|
--push .
|
||||||
|
|
Loading…
Add table
Reference in a new issue