title: Docker COPY from ubuntu absolute path
body: <p>I have following line in my dockerfile</p>
  
  <pre><code>COPY /root/url.net/volumes/persistent/url/root /usr/share/nginx/html
  </code></pre>
  
  <p>When I try to build the image with docker-compose I get</p>
  
  <blockquote>
    <p>Service 'frontend' failed to build: lstat
    /root/url.net/volumes/persistent/url/root: no such file or
    directory</p>
  </blockquote>
  
  <p>I can cd from anywhere to <code>/root/url.net/volumes/persistent/url/root</code> with no problem on my machine.</p>
  
  <p>How can I specify the absolute path of the folder in the dockerfile?</p>