Skip to content

Commit

Permalink
switch to java 21
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 authored Dec 1, 2023
1 parent 957bd74 commit 1491c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ RUN wget https://apk.corretto.aws/amazoncorretto.rsa.pub -O /etc/apk/keys/amazon
amazon-corretto-8 \
amazon-corretto-11 \
amazon-corretto-17 \
amazon-corretto-20 && \
amazon-corretto-21 && \
mkdir -p /var/run/sshd /root/jdk/bin && \
rm -rf /usr/bin/java && \
ln -s /usr/lib/jvm/java-17-amazon-corretto/bin/java /usr/bin/java && \
ln -s /usr/lib/jvm/java-21-amazon-corretto/bin/java /usr/bin/java && \
ln -s /usr/lib/jvm/java-17-amazon-corretto/bin/java /root/jdk/bin/java && \
wget https://dlcdn.apache.org/maven/maven-3/"$MAVEN_VERSION"/binaries/apache-maven-"$MAVEN_VERSION"-bin.tar.gz -O - | tar xz -C /usr/local/bin && \
mv /usr/local/bin/apache-maven-"$MAVEN_VERSION" /usr/local/bin/mvn && \
Expand Down

0 comments on commit 1491c3b

Please sign in to comment.