1
0

22 lines
460 B
Docker

ARG ALPINE_VERSION
FROM alpine:${ALPINE_VERSION}
ARG OS
ARG ARCH
ARG KUBERNETES_RELEASE
RUN apk --no-cache add --update curl ca-certificates bash
RUN curl -Lo /usr/local/bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_RELEASE}/bin/${OS}/${ARCH}/kubectl
RUN chmod +x /usr/local/bin/kubectl
COPY kubectl-setup /bin/
RUN chmod +x /bin/kubectl-setup
CMD [ "/bin/kubectl-setup" ]
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]