FROM registry.access.redhat.com/ubi9/openjdk-17:1.18 LABEL "io.openshift.s2i.build.source-context-dir"="/getting-started" \ "io.openshift.s2i.build.commit.ref"="HEAD" \ "io.openshift.s2i.build.image"="registry.access.redhat.com/ubi9/openjdk-17:1.18" \ "io.openshift.s2i.build.commit.author"="Guillaume Smet " \ "io.openshift.s2i.build.commit.date"="Wed Apr 26 14:24:18 2023 +0200" \ "io.openshift.s2i.build.commit.id"="cf3ad53b03c2ab2d1df904382e21d8c77118035a" \ "io.openshift.s2i.build.commit.message"="[RELEASE] - Bump version to 3.0.1.Final" \ "io.openshift.s2i.build.source-location"="https://github.com/quarkusio/quarkus-quickstarts" \ "io.k8s.display-name"="s2i-out" ENV MAVEN_S2I_ARTIFACT_DIRS="target/quarkus-app" \ S2I_SOURCE_DEPLOYMENTS_FILTER="app lib quarkus quarkus-run.jar" \ JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0" \ AB_JOLOKIA_OFF="true" \ JAVA_APP_JAR="/deployments/quarkus-run.jar" USER root # Copying in source code COPY upload/src /tmp/src # Change file ownership to the assemble user. Builder image must support chown command. RUN chown -R 1001:0 /tmp/src USER 1001 # Assemble script sourced from builder image based on user input or image metadata. # If this file does not exist in the image, the build will fail. RUN /usr/local/s2i/assemble # Run script sourced from builder image based on user input or image metadata. # If this file does not exist in the image, the build will fail. CMD /usr/local/s2i/run