COPY README.md package.json gulpfile.js __BUILD_NUMBER ./
or
COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
You can also use wildcards in the specification of the source file. See the docs for more details .
The catalogs are special! If you write
COPY dir1 dir2 ./
it actually works like
COPY dir1/* dir2/* ./
If you want to copy several directories (not their contents) to the target directory in one command, you need to configure the build context so that your source directories are under a common parent, and then COPY to parent.
Nathaniel Waisbrot May 19 '15 at 4:08 a.m. 2015-05-19 04:08
source share