title: How to add a file to an image in Dockerfile without using the ADD or COPY directive
body: <p>I need the contents of a large <code>*.zip</code> file (5 gb) in my <code>Docker</code> container in order to compile a program. The <code>*.zip</code> file resides on my local machine. The strategy for this would be:</p>
  
  <pre><code>COPY program.zip /tmp/
  RUN cd /tmp \
  &amp;&amp; unzip program.zip \
  &amp;&amp; make
  </code></pre>
  
  <p>After having done this I would like to remove the unzipped directory and the original <code>*.zip</code> file because they are not needed any more. The problem is that the <code>COPY</code> (and also the <code>ADD</code> directive) will add a layer to the image that will contain the file <code>program.zip</code> which is problematic as may image will be at least 5gb big. Is there a way to add a file to a container without using <code>COPY</code> or <code>ADD</code> directive? <code>wget</code> will not work as the mentioned <code>*.zip</code> file is on my local machine and <code>curl file://localhost/home/user/program.zip -o /tmp/program.zip</code> will not work either.</p>