copy file from local to docker container in dockerfile code example
Example 1: copy file from host to docker container
docker cp foo.txt mycontainer:/foo.txt
Example 2: copy file to docker container
docker cp foo.txt mycontainer:/foo.txt
docker cp foo.txt mycontainer:/foo.txt
docker cp foo.txt mycontainer:/foo.txt