Skip to content

Instantly share code, notes, and snippets.

@Piotr1215
Last active January 27, 2020 10:09
Show Gist options
  • Save Piotr1215/13e8a87177914bb2c6523222727f0811 to your computer and use it in GitHub Desktop.
Save Piotr1215/13e8a87177914bb2c6523222727f0811 to your computer and use it in GitHub Desktop.
FROM ubuntu:18.10
WORKDIR /root
COPY bootstrap.sh ./
RUN apt-get update && apt-get -y install --no-install-recommends \
gnupg \
curl \
wget \
git \
apt-transport-https \
ca-certificates \
zsh \
&& rm -rf /var/lib/apt/lists/*
ENV SHELL /usr/bin/zsh
# Install kubectl
RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list && \
apt-get update && apt-get -y install --no-install-recommends kubectl
# Bootstrap kubectl
RUN chmod +x bootstrap.sh && ./bootstrap.sh
COPY .zshrc ./
RUN exec zsh
ENTRYPOINT ["/bin/zsh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment