From fea504f5548bdf58a738a45c7cd080bd60f4dfaa Mon Sep 17 00:00:00 2001 From: lengrongfu Date: Mon, 26 Jul 2021 15:30:13 +0800 Subject: [PATCH] fix:GOPROXY var (#488) Signed-off-by: lengrongfu Co-authored-by: lengrongfu --- hack/docker-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/docker-build.sh b/hack/docker-build.sh index e03c0ea03c1..4d39bb31677 100755 --- a/hack/docker-build.sh +++ b/hack/docker-build.sh @@ -10,6 +10,7 @@ GOPROXY=${GOPROXY:-} curDir=$(cd "$(dirname "$0")" && pwd) IMAGES_DIR="build/images" cd "${curDir}/../" || return +GOPROXY=${GOPROXY:-`go env GOPROXY`} docker-build::build-cdn() { docker build --build-arg GOPROXY="${GOPROXY}" -t "${D7Y_REGISTRY}"/cdn:"${D7Y_VERSION}" -f "${IMAGES_DIR}/cdn/Dockerfile" .