title: Copy a file from host OS to docker image
body: <p>I have a docker file which contains a line like this</p>
  
  <pre><code>FROM ubuntu:14.04
  RUN curl -Lso serf.zip https://URL/serf.zip \ 
  &amp;&amp; unzip serf.zip -d /bin \
  &amp;&amp; rm serf.zip
  </code></pre>
  
  <p>And that means it downloads a file and extract it within the linux image (here it is an Ubuntu-14.04).</p>
  
  <p>Now, I don't want to use that URL. Instead I have the file on my local (host) machine which is a Ubuntu-12.04. The question is, how can I transfer the file from the host OS to the docker image? Then, I am able to change the Dockerfile to </p>
  
  <pre><code>FROM ubuntu:14.04
  RUN unzip serf.zip -d /bin \
  &amp;&amp; rm serf.zip
  </code></pre>
  
  <p>?</p>
  
  <p>P.S: Currently, I have the following images</p>
  
  <pre><code>$ docker images
  REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
  &lt;none&gt;              &lt;none&gt;              99ca37acd529        39 hours ago        261.2 MB
  data-analytics      dataset             1db2326dc82b        2 days ago          1.742 GB
  ubuntu              14.04               780bd4494e2f        4 weeks ago         187.9 MB
  </code></pre>