2020-12-23 18:45:44 +00:00
|
|
|
FROM alpine:3 as build
|
|
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
RUN apk --no-cache add curl
|
|
|
|
|
|
|
|
ARG VERSION=1.20.0
|
2020-12-24 11:07:35 +00:00
|
|
|
ARG TARGETPLATFORM
|
2020-12-23 18:45:44 +00:00
|
|
|
|
2020-12-24 10:54:07 +00:00
|
|
|
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${TARGETPLATFORM}/kubectl"
|
2020-12-23 18:45:44 +00:00
|
|
|
RUN chmod +x kubectl
|
|
|
|
|
2020-12-25 13:25:30 +00:00
|
|
|
FROM alpine:3
|
2020-12-23 18:45:44 +00:00
|
|
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
2020-12-23 19:31:35 +00:00
|
|
|
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
|
2020-12-23 18:45:44 +00:00
|
|
|
|
2020-12-25 13:25:30 +00:00
|
|
|
COPY --from=build /root/kubectl /usr/local/bin/kubectl
|
|
|
|
|
|
|
|
ENTRYPOINT /usr/local/bin/kubectl
|
2020-12-23 18:45:44 +00:00
|
|
|
|