kubectl/Dockerfile
Serhiy Mytrovtsiy 183ae371e8 v1.1.0
2019-10-25 19:45:54 +02:00

15 lines
491 B
Docker

FROM alpine:3.10.2
MAINTAINER Serhiy Mitrovtsiy <mitrovtsiy@ukr.net>
ARG KUBE_VERSION="1.15.4"
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh && \
apk add --no-cache --update openssl curl ca-certificates && \
curl -L https://storage.googleapis.com/kubernetes-release/release/v$KUBE_VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl && \
rm -rf /var/cache/apk/*
ENTRYPOINT ["/entrypoint.sh"]
CMD ["cluster-info"]