From 08a691e6dcc873449c955c0257d843f363a3a277 Mon Sep 17 00:00:00 2001 From: martin-schaefer Date: Wed, 28 Aug 2024 20:51:49 +0200 Subject: [PATCH] Store all helm data in /tmp/helm --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4881649..03d9f34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,12 @@ LABEL org.opencontainers.image.licenses="Apache License v2.0" # Set environment variables for non-interactive installation ENV DEBIAN_FRONTEND=noninteractive +# Store all helm data in /tmp/helm +ENV HOME=/tmp/helm +ENV HELM_CACHE_HOME=/tmp/helm/cache +ENV HELM_CONFIG_HOME=/tmp/helm/config +ENV HELM_DATA_HOME=/tmp/helm/data + # Install dependencies RUN apt-get update && apt-get install -y \ wget \ @@ -21,6 +27,9 @@ RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gp # Update package list and install Temurin-17 RUN apt-get update && apt-get install -y temurin-17-jre +# Install helmfile dependencies (helm plugins, etc.) +RUN helmfile init --force + # Clean up RUN apt-get clean && rm -rf /var/lib/apt/lists/*