Skip to content

Commit

Permalink
upgraded to jvm21, since other java frameworks already use it
Browse files Browse the repository at this point in the history
  • Loading branch information
inemtsev committed Nov 14, 2024
1 parent 441b8dc commit e98669f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frameworks/Kotlin/ktor/ktor-exposed-dao.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:jdk17
FROM gradle:jdk21

WORKDIR /ktor-exposed
COPY ktor-exposed/settings.gradle.kts settings.gradle.kts
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Kotlin/ktor/ktor-exposed-dsl.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:jdk17
FROM gradle:jdk21

WORKDIR /ktor-exposed
COPY ktor-exposed/settings.gradle.kts settings.gradle.kts
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Kotlin/ktor/ktor.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM maven:3.9.7-amazoncorretto-17-debian as maven
FROM maven:3.9.9-amazoncorretto-21-debian-bookworm as maven
WORKDIR /ktor
COPY ktor/pom.xml pom.xml
COPY ktor/src src
RUN mvn clean package -q

FROM amazoncorretto:17.0.11-al2023-headless
FROM amazoncorretto:21-al2023-headless
WORKDIR /ktor
COPY --from=maven /ktor/target/tech-empower-framework-benchmark-1.0-SNAPSHOT-netty-bundle.jar app.jar

Expand Down

0 comments on commit e98669f

Please sign in to comment.