Skip to content

Commit 5274f4c

Browse files
committed
chore: Add proxy setting when docker build.
1 parent 27d9438 commit 5274f4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ NAME=$(shell dirname $@)
33
VERSION=$(shell basename $@)
44
TAG=aws/codebuild/$(NAME):$(VERSION)
55

6+
ifdef http_proxy
7+
BLD_OPTS=--build-arg http_proxy=$$http_proxy --build-arg https_proxy=$$https_proxy --build-arg no_proxy=$$no_proxy
8+
endif
9+
610
all: $(BUILDS)
711

812
$(BUILDS):
913
cd ubuntu/$(NAME)/$(VERSION) && \
10-
docker build -t $(TAG) .
14+
docker build $(BLD_OPTS) -t $(TAG) .

0 commit comments

Comments
 (0)