title: How to copy folders to docker image from Dockerfile?
body: <p>I tried the following command in my Dockerfile: <code>COPY * /</code> and got mighty surprised at the result. Seems the naive docker code traverses the directories from the glob and then dumps the each file in the target directory while respectfully ignoring my directory structure. </p>
  
  <p>At least that is how I understand <a href="https://github.com/docker/docker/issues/15858" rel="noreferrer">this ticket</a> and it certainly corresponds to the result I got. </p>
  
  <p>I guess the only reason this behavior can still exist must be that there is some other way this should be done. But it is not so easy for a bear of very little brain to understand how, does anyone know?</p>