Skip to content

Commit

Permalink
Install kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
pathob committed Nov 1, 2023
1 parent 387286e commit 7391702
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,26 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get --no-install-recommends --yes install \
apt-transport-https \
ca-certificates \
curl \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list

RUN \
apt-get update && \
apt-get --no-install-recommends --yes install \
vim emacs-nox nano \
jq \
tar gzip bzip2 zip unzip p7zip \
openssh-client \
openssl \
gnupg \
git \
curl \
wget \
iputils-arping \
iputils-clockdiff \
Expand All @@ -34,6 +45,7 @@ RUN \
ldap-utils \
postgresql-client \
nettle-bin \
kubectl \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 comments on commit 7391702

Please sign in to comment.