Skip to content

Commit

Permalink
Merge pull request #494 from chenrui333/update-dockerfile
Browse files Browse the repository at this point in the history
dockerfile: update to use the latest LTS java
  • Loading branch information
fwcd authored Oct 2, 2023
2 parents 5719cd4 + dcf77ba commit ba66720
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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}

Expand Down

0 comments on commit ba66720

Please sign in to comment.