From 7d2619835fa375670ffa1410ec864979370c8314 Mon Sep 17 00:00:00 2001 From: David Fry Date: Sun, 6 Aug 2023 15:41:46 +0100 Subject: [PATCH] add kubectl --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 81e7858..4cf150c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \