Skip to content

Commit

Permalink
Revert back to Adoptium for better AMP support. Fix Adoptium install
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchTalmadge committed Oct 31, 2023
1 parent c46b8a6 commit 4ba22a0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand Down

0 comments on commit 4ba22a0

Please sign in to comment.