Skip to content

Commit ba66720

Browse files
authored
Merge pull request #494 from chenrui333/update-dockerfile
dockerfile: update to use the latest LTS java
2 parents 5719cd4 + dcf77ba commit ba66720

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Running this image will start a language server that listens for TCP connections on port 49100
22
# Every connection will be run in a forked child process
33

4-
ARG JDKVERSION=11
4+
ARG JDKVERSION=17
55

66
FROM --platform=$BUILDPLATFORM eclipse-temurin:${JDKVERSION} AS builder
77

8+
ARG JDKVERSION
9+
810
WORKDIR /src/kotlin-language-server
911

1012
COPY . .
11-
RUN ./gradlew :server:installDist
13+
RUN ./gradlew :server:installDist -PjavaVersion=${JDKVERSION}
1214

1315
FROM eclipse-temurin:${JDKVERSION}
1416

0 commit comments

Comments
 (0)