🐛 fix(docker): 基础镜像从 VPC 内网切换为公网默认镜像
All checks were successful
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Successful in 2m19s
All checks were successful
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Successful in 2m19s
CI 服务器在香港,无法访问 registry-vpc 内网地址 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
ARG GOLANG_CI_LINT_VERSION
|
||||
|
||||
FROM registry-vpc.cn-beijing.aliyuncs.com/d8dcloud/go:1.23 as builder
|
||||
FROM golang:1.23 as builder
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
COPY . /go/src/github.com/virtual-kubelet/alibabacloud-eci
|
||||
@@ -10,7 +10,7 @@ RUN go env -w GOPROXY=https://goproxy.cn,https://mirrors.aliyun.com/goproxy/,dir
|
||||
RUN make build
|
||||
RUN cp bin/virtual-kubelet /usr/bin/virtual-kubelet
|
||||
|
||||
FROM registry-vpc.cn-beijing.aliyuncs.com/d8dcloud/golangci/golangci-lint:${GOLANG_CI_LINT_VERSION} as lint
|
||||
FROM golangci/golangci-lint:${GOLANG_CI_LINT_VERSION} as lint
|
||||
WORKDIR /app
|
||||
# 设置 Go 国内代理加速
|
||||
RUN go env -w GOPROXY=https://goproxy.cn,https://mirrors.aliyun.com/goproxy/,direct
|
||||
@@ -28,7 +28,7 @@ RUN \
|
||||
--mount=type=cache,target=/root/.cache/golangci-lint \
|
||||
golangci-lint run -v --out-format="${OUT_FORMAT:-colored-line-number}"
|
||||
|
||||
FROM registry-vpc.cn-beijing.aliyuncs.com/d8dcloud/alpine:latest
|
||||
FROM alpine:latest
|
||||
COPY --from=builder /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet
|
||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user