diff --git a/earthly/java.earthfile b/earthly/java.earthfile new file mode 100644 index 0000000..a5b7f8e --- /dev/null +++ b/earthly/java.earthfile @@ -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 \ No newline at end of file