Skip to content

Commit 8cd8469

Browse files
committed
Abstract over JDK version in Dockerfile
1 parent 12aab55 commit 8cd8469

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 container 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-
FROM --platform=$BUILDPLATFORM eclipse-temurin:11 AS builder
4+
ARG JDKVERSION=11
5+
6+
FROM --platform=$BUILDPLATFORM eclipse-temurin:${JDKVERSION} AS builder
57

68
WORKDIR /src/kotlin-language-server
79

810
COPY . .
911
RUN ./gradlew :server:installDist
1012

11-
FROM eclipse-temurin:11
13+
FROM eclipse-temurin:${JDKVERSION}
1214

1315
WORKDIR /opt/kotlin-language-server
1416

0 commit comments

Comments
 (0)