Dockerfiles can be used to create Docker images with several copy commands using one copy layer:
COPY README.md package.json gulpfile.js __BUILD_NUMBER .
In this example, the following command M owl’s copy skillet allows you to copy files into the current working directory from multiple sources and replaces the need to use multiple copy commands in a single layer.
COPY gives you the ability to copy several files from a computer to a particular directory while ensuring the correct ordering of these files so that all of them are included within the proper layer.
The syntax you used with square brackets isn’t allowed and throws an error in a Dockerfile. Instead, simply provide each file as the last part of a COPY command, separated with spaces, especially the part of the commands above.