github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/build-dependencies/app1/Dockerfile (about) 1 ARG image2 2 FROM busybox as builder 3 4 # SLEEP is to simulate build time 5 ARG SLEEP=0 6 # FAIL=1 will cause the build to fail 7 ARG FAIL=0 8 COPY foo /foo 9 10 ENV SLEEP_TIMEOUT=${SLEEP} 11 ENV FAIL=${FAIL} 12 RUN echo "sleep ${SLEEP_TIMEOUT}" 13 RUN sleep ${SLEEP_TIMEOUT} 14 RUN [ "${FAIL}" == "0" ] || false 15 16 FROM $image2 17 COPY --from=builder . . 18 19 CMD while true; do cat /foo; sleep 1; done