COPY with docker but with exclusion : <p>In a Dockerfile, I have</p>

<pre><code>COPY . .
</code></pre>

<p>I want to exclude an entire directory, in my case, node_modules directory.</p>

<p>Something like this:</p>

<pre><code>   COPY [all but **/node_modules/**] .
</code></pre>

<p>Is this possible with Docker?</p>
