alpine-kubectl (sha256:18658e3a4e2726e49bc969fe449771229bcc967c7a78ee753608f06c9ba46e14)
Published 2026-11-27 21:03:07 +00:00 by forgeadmin
Installation
docker pull forgejo.lab.xi2ix.de/forgeadmin/alpine-kubectl@sha256:18658e3a4e2726e49bc969fe449771229bcc967c7a78ee753608f06c9ba46e14sha256:18658e3a4e2726e49bc969fe449771229bcc967c7a78ee753608f06c9ba46e14Image layers
| ADD alpine-minirootfs-3.24.1-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --update --no-cache curl # buildkit |
| RUN /bin/sh -c ARCH=$(uname -m) && case $ARCH in x86_64) ARCH=amd64 ;; aarch64) ARCH=arm64 ;; armv7l) ARCH=arm ;; s390x) ARCH=s390x ;; ppc64le) ARCH=ppc64le ;; *) echo "Unsupported architecture: $ARCH" && exit 1 ;; esac && KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt) && curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" && chmod +x kubectl && mv kubectl /usr/local/bin/ # buildkit |
| ENTRYPOINT ["/usr/local/bin/kubectl"] |
| CMD ["--help"] |