diff --git a/Dockerfile b/Dockerfile index 8b14c791b..77cb1d6ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,16 @@ # Running this image will start a language server that listens for TCP connections on port 49100 # Every connection will be run in a forked child process -ARG JDKVERSION=11 +ARG JDKVERSION=17 FROM --platform=$BUILDPLATFORM eclipse-temurin:${JDKVERSION} AS builder +ARG JDKVERSION + WORKDIR /src/kotlin-language-server COPY . . -RUN ./gradlew :server:installDist +RUN ./gradlew :server:installDist -PjavaVersion=${JDKVERSION} FROM eclipse-temurin:${JDKVERSION}