From 7b8939a349b2c5a87750a289fdc461480678e27e Mon Sep 17 00:00:00 2001 From: William Brawner Date: Mon, 1 Jun 2020 08:03:35 -0700 Subject: [PATCH] Update Dockerfile to use JDK 14 --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4203f12..ca00bcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:11-jdk as builder +FROM openjdk:14-jdk as builder MAINTAINER William Brawner RUN groupadd --system --gid 1000 gradle \ @@ -6,9 +6,9 @@ RUN groupadd --system --gid 1000 gradle \ COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src -RUN /home/gradle/src/gradlew bootJar +RUN /home/gradle/src/gradlew --console=plain --no-daemon bootJar -FROM openjdk:11-jdk-slim +FROM openjdk:14-jdk-slim EXPOSE 8080 -COPY --from=builder /home/gradle/src/build/libs/budget-server-*.jar budget-api.jar -ENTRYPOINT ["/usr/local/openjdk-11/bin/java", "-Xmx256M", "-jar", "/budget-api.jar"] +COPY --from=builder /home/gradle/src/api/build/libs/api.jar twigs-api.jar +CMD /usr/java/openjdk-14/bin/java $JVM_ARGS -jar /twigs-api.jar