From 4ba22a0e5a645e4a53906a680523171ec2938448 Mon Sep 17 00:00:00 2001 From: Mitch Talmadge Date: Mon, 30 Oct 2023 23:28:27 -0600 Subject: [PATCH] Revert back to Adoptium for better AMP support. Fix Adoptium install --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8af7e2..d48dafb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -147,15 +147,11 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ /var/lib/apt/lists/* \ /var/tmp/* -# Install Corretto JDK -RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /etc/apt/trusted.gpg.d/corretto.gpg && \ - add-apt-repository "deb https://apt.corretto.aws stable main" && \ +# Install Adoptium JDK +RUN 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 && \ apt-get update && \ - apt-get install -y \ - java-1.8.0-amazon-corretto-jdk \ - java-11-amazon-corretto-jdk \ - java-17-amazon-corretto-jdk \ - java-21-amazon-corretto-jdk && \ + apt-get install -y temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*