Switch to ibm-semeru for docker images #19

Merged
wbrawner merged 1 commit from docker into main 2024-07-07 16:27:03 +00:00

View file

@ -1,4 +1,4 @@
FROM openjdk:24-jdk as builder
FROM ibm-semeru-runtimes:open-21-jdk as builder
MAINTAINER William Brawner <me@wbrawner.com>
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