Switch to ibm-semeru for docker images
All checks were successful
Pull request workflow / Build and Test (pull_request) Successful in 3m40s
Publish Docker image / Push Docker image to Forgejo Packages (push) Successful in 1h15m50s

This commit is contained in:
William Brawner 2024-07-07 10:22:57 -06:00
parent d13b784826
commit 5aef4630a6
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

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