#### # This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode # # Before building the container image run: # # ./gradlew build -Dquarkus.package.jar.type=legacy-jar # # Then, build the image with: # # docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/tournament-legacy-jar . # # Then run the container using: # # docker run -i --rm -p 8080:8080 quarkus/tournament-legacy-jar # # This image uses the `run-java.sh` script to run the application. # You can find more information about the UBI base runtime images and their configuration here: # https://rh-openjdk.github.io/redhat-openjdk-containers/ ### FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.24 ENV LANGUAGE='en_US:en' COPY build/lib/* /deployments/lib/ COPY build/*-runner.jar /deployments/quarkus-run.jar EXPOSE 8080 USER 185 ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" ENV JAVA_APP_JAR="/deployments/quarkus-run.jar" ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]