how to copy a single file from local to a folder in container dockerfile code example Example: copy file from host to docker container docker cp foo.txt mycontainer:/foo.txt