docker - build fails when COPYing file to root <p>I'm getting a docker build error when I try to add a shell script to the root directory (/entrypoint.sh)</p> <p>Dockerfile:</p> <pre><code>FROM ubuntu:trusty COPY ./entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] </code></pre> <p>Output:</p> <pre><code>Sending build context to Docker daemon 3.072 kB Step 1 : FROM ubuntu:trusty ---&gt; 1e0c3dd64ccd Step 2 : COPY ./entrypoint.sh / stat /var/lib/docker/aufs/mnt/5570570a77deddea426b95bd0f706beff4b5195a2fba4a8f70dcac4671bca225/entrypoint.sh: no such file or directory </code></pre> <p>The file is present at the root of the build context, and when I change / to a subdirectory such as /opt/, it works. Any idea what could be going wrong?</p>