Attempt to migrate to Java 19.

This commit is contained in:
Kavin 2023-03-09 13:00:37 +00:00
parent 10758f595b
commit 4a533e9513
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
10 changed files with 63 additions and 61 deletions

View file

@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jdk AS build
FROM eclipse-temurin:19-jdk AS build
WORKDIR /app/
@ -7,7 +7,7 @@ COPY . /app/
RUN --mount=type=cache,target=/root/.gradle/caches/ \
./gradlew shadowJar
FROM eclipse-temurin:17-jre
FROM eclipse-temurin:19-jre
WORKDIR /app/
@ -17,4 +17,4 @@ COPY VERSION .
EXPOSE 8080
CMD java -jar /app/piped.jar
CMD ["java", "--enable-preview", "-jar", "/app/piped.jar"]