[Docker] Add --base-image argument to build-docker.sh (#17574)

This commit is contained in:
Ivorius 2021-08-13 22:29:33 +02:00 committed by GitHub
parent 3e48df89f7
commit 8b6edcb1c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,11 @@ case $key in
GPU="-gpu"
BASE_IMAGE="nvidia/cuda:11.2.0-cudnn8-devel-ubuntu18.04"
;;
--base-image)
# Override for the base image.
shift
BASE_IMAGE=$1
;;
--no-cache-build)
NO_CACHE="--no-cache"
;;
@ -47,7 +52,7 @@ case $key in
PYTHON_VERSION=$1
;;
*)
echo "Usage: build-docker.sh [ --no-cache-build ] [ --shas-only ] [ --build-development-image ] [ --build-examples ] [ --wheel-to-use ] [ --python-version ]"
echo "Usage: build-docker.sh [ --gpu ] [ --base-image ] [ --no-cache-build ] [ --shas-only ] [ --build-development-image ] [ --build-examples ] [ --wheel-to-use ] [ --python-version ]"
exit 1
esac
shift