Skip to content

Commit 32664b9

Browse files
authored
dockerfile: Remove GOPROXY settings in dockerfile (#568)
dockerfile: remove GOPROXY settings
1 parent 9b44848 commit 32664b9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ COPY go.mod go.mod
77
COPY go.sum go.sum
88
# cache deps before building and copying source so that we don't need to re-download as much
99
# and so that source changes don't invalidate our downloaded layer
10-
RUN go env -w GOPROXY=https://goproxy.cn,direct; \
11-
go mod download
10+
# RUN go env -w GOPROXY=https://goproxy.cn,direct; \
11+
# go mod download
12+
RUN go mod download
1213

1314
# Copy the go source
1415
COPY cmd/manager/main.go cmd/manager/main.go

Dockerfile.sidecar

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ COPY go.sum go.sum
1111

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

1718
# Copy the go source
1819
COPY cmd/sidecar/main.go cmd/sidecar/main.go

0 commit comments

Comments
 (0)