FROM registry.access.redhat.com/ubi9/openjdk-17:1.18 LABEL "io.openshift.s2i.build.image"="registry.access.redhat.com/ubi9/openjdk-17:1.18" \ "io.openshift.s2i.build.commit.author"="Jonathan Dowland <63694+jmtd@users.noreply.github.com>" \ "io.openshift.s2i.build.commit.id"="690893d090b99b6d328d0f08d09706e00fe529b2" \ "io.openshift.s2i.build.commit.ref"="master" \ "io.openshift.s2i.build.source-context-dir"="spring-boot-sample-simple/target" \ "io.k8s.display-name"="s2i-out" \ "io.openshift.s2i.build.commit.date"="Wed Nov 22 11:10:48 2023 +0000" \ "io.openshift.s2i.build.commit.message"="Merge pull request #4 from jmtd/OPENJDK-2408-bin-custom-s2i-assemble" \ "io.openshift.s2i.build.source-location"="https://github.com/jboss-container-images/openjdk-test-applications" 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