1 2 3 4 5 6 7 8 9 10 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 .