ubuntu@shenzhen:~/file $ docker image build --tag copyfile .
Sending build context to Docker daemon 5.632kB
Step 1/4 : FROM ubuntu:latest
---> 1e4467b07108
Step 2/4 : COPY hello /
---> Using cache
---> 908c4cef221d
Step 3/4 : COPY a/b/c/world /a/b/c/
---> 8bdd7ca4c578
Step 4/4 : CMD ["/bin/bash"]
---> Running in ff1b721b2ab7
Removing intermediate container ff1b721b2ab7
---> fb44a39291bd
Successfully built fb44a39291bd
Successfully tagged copyfile:latest
ubuntu@shenzhen:~/file $ docker container run -it copyfile
root@6015d18b63d3:/# ls
a boot etc home lib32 libx32 mnt proc run srv tmp var
bin dev hello lib lib64 media opt root sbin sys usr
root@6015d18b63d3:/# cd a
root@6015d18b63d3:/a# ls
b
root@6015d18b63d3:/a# cd b
root@6015d18b63d3:/a/b# cd c
root@6015d18b63d3:/a/b/c# ls
world
root@6015d18b63d3:/a/b/c# exit
ubuntu@shenzhen:~/file $ tree ..
├── a
│ └── b
│ └── c
│ └── world
├── Dockerfile
└── hello
3 directories, 3 files