From 01a6f920a305f1a9bf756a99fc4adff69eb320ae Mon Sep 17 00:00:00 2001 From: Sreejith Punnapuzha Date: Mon, 10 May 2021 12:13:14 -0500 Subject: [PATCH] Add Proxy for curl command. Curl by default reads proxy from environment variable. This commit adds proxy option to curl command. Signed-off-by: Sreejith Punnapuzha Change-Id: I6268ecc8e9d5c2d7a1c970e84188513bd2118b25 --- alpine/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpine/Makefile b/alpine/Makefile index 9c533c2..ac22eca 100644 --- a/alpine/Makefile +++ b/alpine/Makefile @@ -48,7 +48,7 @@ build_image: mkdir -p $(BUILD_DIR) ifeq ($(IMAGE_ID), none) ifeq ($(USE_PROXY), true) - curl -o alpine-minirootfs.tar.gz $(ALPINE_URL) + curl -o alpine-minirootfs.tar.gz $(ALPINE_URL) --proxy $(PROXY) docker build . \ --iidfile $(BUILD_DIR)/image_id \ --tag $(IMAGE) \