github.com/openshift/source-to-image@v1.4.1-0.20240516041539-bf52fc02204e/test/integration/images/sti-fake-onbuild-numericuser/Dockerfile (about)

     1  FROM sti_test/sti-fake
     2  
     3  USER 1001
     4  
     5  ONBUILD USER 1001
     6  ONBUILD RUN touch /tmp/onbuild
     7  
     8  # The ONBUILD strategy only works with the application source dir so we need
     9  # to manually specify to copy to another location.
    10  #
    11  # This is a little hack-ish given that we know our assemble script requires files to be in /tmp/src
    12  # we will copy there, and also set our WORKDIR to be the same location so it has access to the scripts
    13  ONBUILD COPY . /tmp/src/
    14  WORKDIR /tmp/src