Add earthly/java.earthfile

This commit is contained in:
2026-06-04 19:38:45 +02:00
parent e915931516
commit 62edfa8fd8

12
earthly/java.earthfile Normal file
View File

@@ -0,0 +1,12 @@
VERSION 0.8
FROM debian:bookworm-slim
java:
RUN apt update
RUN apt install -y wget gpg apt-transport-https
RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public \
| gpg --dearmor \
| tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" \
| tee /etc/apt/sources.list.d/adoptium.list
RUN apt update