title: How to use COPY command in Docker build?
body: <p>I am trying to perform some automation to while build my docker image. Below is my code run in Windows 8, Kitematic, Virtual Box:</p>
  
  <pre><code>FROM node:6
  
  # Create directory
  RUN mkdir -p /tempDir &amp;&amp; mkdir -p /tempDir/built &amp;&amp; mkdir -p /data
  
  # Setup build environment
  COPY . /tempDir
  RUN npm install -g gulp typings 
  
  # Build from source
  WORKDIR /tempDir 
  RUN npm install &amp;&amp; typings install &amp;&amp; gulp build 
  </code></pre>
  
  <p>Up to here, everything is fine, success to build my typescript to javascript in /tempDir/built directory. I bash into my container, it look like this:</p>
  
  <pre><code>tempDir/gulpfile.js
  tempDir/typings
  tempDir/src 
  tempDir/built
  </code></pre>
  
  <p>My next step is to move this built folder to another directory then delete tempDir. My problem is that COPY command not work as I expected. </p>
  
  <pre><code>COPY built/* /data/
  </code></pre>
  
  <p>I keep on getting error like 'no such file or directory' or 'lstat built/: no such file or directory'. 
  I tried ./built, ./built/, built/, /tempDir/built/, and other still getting the same error. 
  Anyone can help on this?</p>