Skip to content

Commit

Permalink
dockerfile: Remove GOPROXY settings in dockerfile (#568)
Browse files Browse the repository at this point in the history
dockerfile: remove GOPROXY settings
  • Loading branch information
zhl003 authored Jul 1, 2022
1 parent 9b44848 commit 32664b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ COPY go.mod go.mod
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go env -w GOPROXY=https://goproxy.cn,direct; \
go mod download
# RUN go env -w GOPROXY=https://goproxy.cn,direct; \
# go mod download
RUN go mod download

# Copy the go source
COPY cmd/manager/main.go cmd/manager/main.go
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.sidecar
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ COPY go.sum go.sum

# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go env -w GOPROXY=https://goproxy.cn,direct; \
go mod download
# RUN go env -w GOPROXY=https://goproxy.cn,direct; \
# go mod download
RUN go mod download

# Copy the go source
COPY cmd/sidecar/main.go cmd/sidecar/main.go
Expand Down

0 comments on commit 32664b9

Please sign in to comment.