Skip to content

Commit

Permalink
build(docker): add support for GOPROXY in docker-build (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb authored Jan 9, 2023
1 parent 5147b86 commit 3c8db95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build the manager binary
FROM docker.io/library/golang:1.19 as builder
ARG GOPROXY
ARG TARGETOS
ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
.PHONY: docker-build
docker-build: ## Build docker image with the manager.
docker build -t ${IMG} .
docker build -t ${IMG} --build-arg GOPROXY=${GOPROXY} .

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
Expand Down

0 comments on commit 3c8db95

Please sign in to comment.