diff --git a/scala/Dockerfile b/scala/Dockerfile index 637f5f4de8e..5c0a528970d 100644 --- a/scala/Dockerfile +++ b/scala/Dockerfile @@ -12,7 +12,12 @@ COPY . ./ RUN sbt universal:packageZipTarball -FROM eclipse-temurin:17.0.7_7-jre-jammy +{{#provider.default.java-version}} + FROM eclipse-temurin:{{{.}}}-jre-jammy +{{/provider.default.java-version}} +{{^provider.default.java-version}} + FROM eclipse-temurin:17.0.7_7-jre-jammy +{{/provider.default.java-version}} WORKDIR /usr/src/app diff --git a/scala/finatra/config.yaml b/scala/finatra/config.yaml index 30b05400a21..054422bc4b8 100644 --- a/scala/finatra/config.yaml +++ b/scala/finatra/config.yaml @@ -3,6 +3,7 @@ provider: language: 2.13 image-version: 2.13.10 + java-version: 11 framework: website: twitter.github.io/finatra/