diff options
Diffstat (limited to 'deployment/docker-build.sh')
-rw-r--r-- | deployment/docker-build.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deployment/docker-build.sh b/deployment/docker-build.sh new file mode 100644 index 0000000..767554f --- /dev/null +++ b/deployment/docker-build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $HTTP_PROXY ]; then + BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}" +fi +if [ $HTTPS_PROXY ]; then + BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}" +fi + +echo "Start build docker image" +docker build ${BUILD_ARGS} -t dkv . |