dotfiles/packages/Dockerfile.kubectl

17 lines
418 B
Docker

FROM alpine:3 as build
WORKDIR /root
RUN apk --no-cache add curl
ARG VERSION=1.20.0
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/${TARGETPLATFORM}/kubectl"
RUN chmod +x kubectl
FROM scratch AS binaries
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
LABEL org.opencontainers.image.source https://github.com/mentos1386/env
COPY --from=build /root/kubectl /