From 7c369c8f8082e22214c4e2b0f7f827c2537ae00d Mon Sep 17 00:00:00 2001 From: ties Date: Wed, 28 Aug 2024 11:00:26 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f19ddd..7945099 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ -FROM bitnami/kubectl:1.30.4 +FROM ubuntu:latest +ENV TZ="Europe/Amdsterdam" -USER root -RUN wget https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 -O get_helm.sh && chmod +x get_helm.sh && ./get_helm.sh && rm get_helm.sh -RUN useradd -m -u 1001 -o -s /bin/bash notroot +RUN apt update && apt install -y yq kubectl helm curl wget +RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash +COPY createHelmYaml.sh /usr/local/bin/ && chmod +x /usr/local/bin/createHelmYaml.sh + +RUN useradd -ms /bin/bash notroot USER notroot -COPY createHelmYaml.sh /usr/local/bin/ +WORKDIR /home/newuser ENTRYPOINT bash /usr/local/bin/createHelmYaml.sh \ No newline at end of file