I tried the following command in my Dockerfile: COPY * / and got mighty surprised at the result. Seems the naive docker code traverses the directories from the glob
COPY * /
use ADD instead of COPY. Suppose you want to copy everything in directory src from host to directory dst from container:
ADD
COPY
ADD src dst
Note: directory dst will be automatically created in container.