diff --git a/Dockerfile b/Dockerfile index c75bf24..adcd7c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:24-jdk as builder +FROM ibm-semeru-runtimes:open-21-jdk as builder MAINTAINER William Brawner RUN groupadd --system --gid 1000 gradle \ @@ -8,10 +8,10 @@ COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN /home/gradle/src/gradlew --console=plain --no-daemon shadowJar -FROM openjdk:24-slim +FROM ibm-semeru-runtimes:open-21-jre EXPOSE 8080 RUN groupadd --system --gid 1000 twigs \ && useradd --system --gid twigs --uid 1000 --create-home twigs COPY --from=builder --chown=twigs:twigs /home/gradle/src/app/build/libs/twigs.jar twigs.jar USER twigs -CMD /usr/local/openjdk-17/bin/java $JVM_ARGS -jar /twigs.jar +CMD /opt/java/openjdk/bin/java $JVM_ARGS -jar /twigs.jar