File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ COPY go.mod go.sum ./
1010# uncomment if using vendor
1111# COPY ./vendor ./vendor
1212
13+ ARG GOPROXY
14+ ENV GOPROXY=${GOPROXY}
15+
1316RUN go mod download
1417
1518COPY . ./
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ generate: controller-gen
8888# Requires buildx to be installed: https://docs.docker.com/buildx/working-with-buildx/
8989# By default the TARGETPLATFORM is set to linux/amd64, change the value if you are building for linux/arm64
9090docker-build : check-env test
91- docker buildx build --platform linux/amd64 -t $(IMAGE ) . --load
91+ docker buildx build --platform linux/amd64 --build-arg GOPROXY= $( GOPROXY ) - t $(IMAGE ) . --load
9292
9393docker-push : check-env
9494 docker push $(IMAGE )
You can’t perform that action at this time.
0 commit comments