github.com/nak3/source-to-image@v1.1.10-0.20180319140719-2ed55639898d/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