github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/integration/build/testdata/Dockerfile.TestBuildMultiStageCopy (about)

     1  FROM busybox AS base
     2  RUN mkdir existingdir
     3  
     4  FROM base AS source
     5  RUN echo "Hello World" > /hello
     6  
     7  FROM base AS copy_to_root
     8  COPY --from=source /hello /hello
     9  
    10  FROM base AS copy_to_newdir
    11  COPY --from=source /hello /newdir/hello
    12  
    13  FROM base AS copy_to_newdir_nested
    14  COPY --from=source /hello /newdir/newsubdir/hello
    15  
    16  FROM base AS copy_to_existingdir
    17  COPY --from=source /hello /existingdir/hello
    18  
    19  FROM base AS copy_to_newsubdir
    20  COPY --from=source /hello /existingdir/newsubdir/hello