Skip to content

Commit

Permalink
use Amazon Coretto for OpenJDK 23
Browse files Browse the repository at this point in the history
  • Loading branch information
tinnywang committed Nov 8, 2024
1 parent 1b1e7a5 commit 108eb06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion aws-sdk-go-v2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ ENV XDG_CACHE_HOME /tmp

RUN go env -w GOPROXY=direct

# Install Amazon Coretto for OpenJDK 23.
# https://docs.aws.amazon.com/corretto/latest/corretto-23-ug/generic-linux-install.html
RUN wget -O - https://apt.corretto.aws/corretto.key | \
gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | \
tee /etc/apt/sources.list.d/corretto.list

RUN apt-get update && \
apt-get install -y --no-install-recommends openjdk-17-jdk
apt-get install -y --no-install-recommends java-23-amazon-corretto-jdk

RUN mkdir -p /go/src/github.com/aws/

Expand Down

0 comments on commit 108eb06

Please sign in to comment.