title: Can't create a docker image for COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXX error
body: <p>I'm not able to build my image. Below is the line that I feel as the challenge. Please have a look and suggest me if I have done anything wrong. I'm trying to copy a zip file that is present in the current folder as the Dockerfile and docker-compose file. I don't have a .dockerignore file also. I'm declaring the file name as ENV and passing that value in docker-compose file.</p>
  <pre><code>COPY ${FILE_NAME}.zip /app/
  </code></pre>
  <p>My docker-compose file is like this.</p>
  <pre><code>version: '3.7'
  services:
      tws:
          build:
              context: .
              dockerfile: Dockerfile
          ports:
              - &quot;8085:8085&quot;
          environment:
              - FILE_NAME=xxxxx
  </code></pre>
  <p>Below is the error that come during <code>docker-compose up</code></p>
  <pre><code>ERROR: Service 'yyy' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder467027701/.zip: no such file or directory
  </code></pre>
  <p><strong>EDIT:</strong> It is working fine if I provide the actual name instead of ENV in the Dockerfile</p>