Skip to content

Commit

Permalink
Use java 21 at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Feb 28, 2024
1 parent b92d0bb commit aaea41d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit aaea41d

Please sign in to comment.