Skip to content

Instantly share code, notes, and snippets.

@palnabarun
Created June 2, 2020 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palnabarun/e4a96c24e2a6f6ff9d60f0cf331b4d27 to your computer and use it in GitHub Desktop.
Save palnabarun/e4a96c24e2a6f6ff9d60f0cf331b4d27 to your computer and use it in GitHub Desktop.
Dockerfile to create an image with just kubectl. NOT FOR PRODUCTION
FROM ubuntu:18.04
RUN apt update && apt install -y curl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.2/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin/kubectl
CMD ["sleep", "3600"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment