Skip to content

Commit

Permalink
add kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
dfry committed Aug 6, 2023
1 parent 420c6c1 commit 7d26198
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ FROM ubuntu:20.04
ARG VAULT_VERSION=1.13.1
ARG UID=100
ARG GID=1000
ARG KUBECTL_VERSION=v1.26.7

RUN groupadd -g "${GID}" vault && mkdir -p /home/vault \
&& usermod -l vault -g "${GID}" -d /home/vault _apt && chown -R vault:vault /home/vault

RUN wget https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl

# Update apt and Install dependencies
RUN apt-get update && apt install software-properties-common -y && add-apt-repository ppa:rmescandon/yq -y \
&& apt update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y \
Expand Down

0 comments on commit 7d26198

Please sign in to comment.