Skip to content

Commit 065c638

Browse files
authored
Merge pull request #273 from ErikJiang/kubean_dockerfile
Disable cn proxy sources to improve kubean image build efficiency
2 parents b93cf1c + 96b564e commit 065c638

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build/images/kubean-operator/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ FROM golang:1.17.3 as build
22

33
WORKDIR /kubean
44

5-
ENV GO111MODULE=on \
6-
GOPROXY=https://goproxy.cn,direct
5+
# ENV GO111MODULE=on \
6+
# GOPROXY=https://goproxy.cn,direct
7+
ENV GO111MODULE=on
78

89
COPY . .
910

1011
RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -o kubean-operator ./cmd/kubean-operator/main.go
1112

1213
FROM alpine:3.15
1314

14-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
15+
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
1516

16-
COPY --from=build /kubean/kubean-operator /bin/
17+
COPY --from=build /kubean/kubean-operator /bin/
1718

1819
CMD ["/bin/kubean-operator"]

0 commit comments

Comments
 (0)