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