github.com/openshift/source-to-image@v1.4.1-0.20240516041539-bf52fc02204e/test/integration/images/sti-fake-onbuild-rootuser/Dockerfile (about) 1 FROM sti_test/sti-fake 2 3 ONBUILD USER 0 4 ONBUILD RUN touch /tmp/onbuild 5 6 # The ONBUILD strategy only works with the application source dir so we need 7 # to manually specify to copy to another location. 8 # 9 # This is a little hack-ish given that we know our assemble script requires files to be in /tmp/src 10 # we will copy there, and also set our WORKDIR to be the same location so it has access to the scripts 11 ONBUILD COPY . /tmp/src/ 12 WORKDIR /tmp/src