Docker build-arg and copy : <p>Trying to copy a folders content, it works when i hard code the path like:</p>

<pre><code>COPY ./my-folder /path/to/location
</code></pre>

<p>But need to be able to change this path so i tried using a build argument like this:</p>

<pre><code>COPY ${folderVariable} /path/to/location
</code></pre>

<p>and then build with </p>

<pre><code>--build-arg folderVariable=./my-folder
</code></pre>

<p>But it copies everything in the same folder as "my-folder", when i only want the contents of "my-folder"</p>
