Upgrade to latest Java 17

Java 17 is the latest LTS release so will be around for a number of
years.
I have chosen to use the Temurin distribution because it appears to be a
good sensible default according to https://whichjdk.com/
I have included an SDKMAN config file to make it easier to install and
select the right version of Java locally.
This commit is contained in:
Brett Henderson
2023-05-14 17:17:45 +10:00
parent c02543bf69
commit 7b2de2b256
2 changed files with 7 additions and 1 deletions

3
.sdkmanrc Normal file
View File

@ -0,0 +1,3 @@
# Using Temurin distribution by Eclipse
# https://whichjdk.com/.
java=17.0.7-tem

View File

@ -1,4 +1,7 @@
FROM openjdk:11
FROM eclipse-temurin:17.0.7_7-jdk
RUN apt update
RUN apt install -y git
ARG CURRENT_USER_ID
ARG CURRENT_GROUP_ID