diff --git a/scripts/container.image.build.bash b/scripts/container.image.build.bash index 50b411691..822786b1a 100755 --- a/scripts/container.image.build.bash +++ b/scripts/container.image.build.bash @@ -3,7 +3,8 @@ set -euo pipefail # container.image.build.bash builds an image from a stage defined in # container/build/Containerfile, and tags it as "ynr:$image". -image="$1" +image="$1"; shift +args="$@" # Change to the directory above the directory containing this script. cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/.." @@ -17,4 +18,4 @@ else fi; set -u # Build the image. -"$builder" build --target "$image" --tag "ynr:$image" -f container/build/Containerfile . +"$builder" build --target "$image" --tag "ynr:$image" -f container/build/Containerfile $args .