From aaea41da083085e82c35ac063239a35dab6d3259 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 28 Feb 2024 23:15:32 +0000 Subject: [PATCH] Use java 21 at runtime --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 16960ae..b437818 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,7 @@ # BUILD JRE STAGE # -------------- FROM alpine as build-jre -RUN apk add --no-cache openjdk17 -RUN apk add --no-cache binutils +RUN apk add --no-cache openjdk21 binutils # create a minimal JRE RUN jlink \ @@ -22,8 +21,7 @@ RUN jlink \ # BUILD PROJECT STAGE # -------------- FROM alpine as build-project -RUN apk add --no-cache openjdk17 -RUN apk add --no-cache maven +RUN apk add --no-cache openjdk21 maven # compile the project WORKDIR /bytebin