更新 Dockerfile
Some checks failed
CI / Lint (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Envtest Tests (push) Has been cancelled
CI / E2E (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-07-01 02:08:47 +00:00
parent a34171c71e
commit f1ff24e1c4

View File

@@ -25,8 +25,16 @@ RUN \
--mount=type=cache,target=/root/.cache/golangci-lint \
golangci-lint run -v --out-format="${OUT_FORMAT:-colored-line-number}"
FROM scratch
# FROM scratch
# COPY --from=builder /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet
# COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
FROM alpine:latest
COPY --from=builder /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
# 创建必要的目录
RUN mkdir -p /root/.kube
ENTRYPOINT [ "/usr/bin/virtual-kubelet" ]
CMD [ "--help" ]