From 74381bdc4652dfa48b2d772a83f20d64ea880a60 Mon Sep 17 00:00:00 2001 From: Christoph Ellrich Date: Wed, 9 Apr 2025 21:26:28 +0200 Subject: [PATCH] fixed Dockerfile --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7594d24..826bf92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM alpine:3.19 -# Install kubectl and helm -RUN apk add --no-cache curl bash ca-certificates && \ - curl -LO "https://dl.k8s.io/release/$(curl -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ +RUN apk add --no-cache curl bash ca-certificates + +# Install kubectl +RUN KUBECTL_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt) && \ + curl -LO https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \ install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \ - rm kubectl && \ - curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + rm kubectl + +# Install Helm +RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash ENTRYPOINT ["/bin/sh"]