-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ghcr.io/helmfile/helmfile-debian-stable-slim:v0.167.1
LABEL org.opencontainers.image.source="https://github.com/martin-schaefer/helmfile-jre17"
LABEL org.opencontainers.image.description="A base container with helmfile, helm and Java 17 Runtime Environment (Temurin)"
LABEL org.opencontainers.image.licenses="Apache License v2.0"
# Set environment variables for non-interactive installation
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y \
wget \
apt-transport-https \
ca-certificates \
gnupg \
--no-install-recommends
# Add the Adoptium GPG key and repository
RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor > /usr/share/keyrings/adoptium-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/adoptium-archive-keyring.gpg] https://packages.adoptium.net/artifactory/deb focal main" > /etc/apt/sources.list.d/adoptium.list
# Update package list and install Temurin-17
RUN apt-get update && apt-get install -y temurin-17-jre
# Allow access for other users to /helm
RUN chmod -R a+rw /helm
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
CMD helm version;helmfile --version;java -version