diff --git a/build/Dockerfile.apiserver b/build/Dockerfile.apiserver index 0cacc1ce..629970ad 100644 --- a/build/Dockerfile.apiserver +++ b/build/Dockerfile.apiserver @@ -15,14 +15,13 @@ FROM golang:1.22.2-bookworm as builder WORKDIR /workspace/src -RUN git clone https://github.com/kubernetes/kubernetes --branch v1.23.2 --depth=1 +RUN git clone https://github.com/kubernetes/kubernetes --branch v1.30.1 --depth=1 WORKDIR /workspace/src/kubernetes RUN apt-get update && apt-get install --yes rsync -RUN make generated_files -RUN CGO_ENABLED=0 go build -o /workspace/artifacts/kube-apiserver ./cmd/kube-apiserver +RUN make kube-apiserver FROM gcr.io/distroless/static -COPY --from=builder /workspace/artifacts/kube-apiserver /kube-apiserver +COPY --from=builder /workspace/src/kubernetes/_output/local/bin/linux/amd64/kube-apiserver /kube-apiserver #USER 65532:65532