代码拉取完成,页面将自动刷新
# Build the manager binary
FROM golang:1.17 as builder
WORKDIR /workspace
# Copy the Go Modules manifests
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 mod download
RUN git clone https://github.com/kubesphere/helm-charts.git
# Copy the go source
ADD ./ /workspace
# Build
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -tags='containers_image_openpgp' -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -tags='containers_image_openpgp' -a -o kk cmd/main.go
# Build the manager image
FROM debian:stable
RUN useradd -m kubekey -u 1000 && apt-get update && apt-get install bash curl -y; apt-get autoclean; rm -rf /var/lib/apt/lists/*
USER kubekey:kubekey
RUN mkdir -p /home/kubekey/kubekey
WORKDIR /home/kubekey
COPY --from=builder /workspace/helm-charts/src/main/nfs-client-provisioner /home/kubekey/addons/nfs-client-provisioner
COPY --from=builder /workspace/helm-charts/src/test/ks-installer /home/kubekey/addons/ks-installer
COPY --from=builder /workspace/manager /home/kubekey
COPY --from=builder /workspace/kk /home/kubekey
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。