Skip to content

Commit aaea41d

Browse files
committed
Use java 21 at runtime
1 parent b92d0bb commit aaea41d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
# BUILD JRE STAGE
66
# --------------
77
FROM alpine as build-jre
8-
RUN apk add --no-cache openjdk17
9-
RUN apk add --no-cache binutils
8+
RUN apk add --no-cache openjdk21 binutils
109

1110
# create a minimal JRE
1211
RUN jlink \
@@ -22,8 +21,7 @@ RUN jlink \
2221
# BUILD PROJECT STAGE
2322
# --------------
2423
FROM alpine as build-project
25-
RUN apk add --no-cache openjdk17
26-
RUN apk add --no-cache maven
24+
RUN apk add --no-cache openjdk21 maven
2725

2826
# compile the project
2927
WORKDIR /bytebin

0 commit comments

Comments
 (0)