From be38241cf4709b27e1539287baef2295458cd203 Mon Sep 17 00:00:00 2001 From: em Date: Mon, 30 Oct 2023 11:20:35 +0100 Subject: [PATCH] Fix JAVA_HOME --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b637e1f..ff32747 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,11 @@ RUN apt-get update && apt-get -y install \ FROM jre as jdk ARG JAVA_VERSION +ENV JAVA_HOME "" + # see https://adoptium.net/installation/linux/ -RUN apt update && apt install -y wget apt-transport-https \ +RUN unset JAVA_HOME \ + && apt update && apt install -y wget apt-transport-https \ && mkdir -p /etc/apt/keyrings \ && wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc \ && echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list \