title: Is there a way to replicate pwd in a volume mount for docker in a boot2docker context?
body: <p>So currently I can do: <code>docker -v .:/usr/src/app</code> or even specify it in my <code>docker-compose.yml</code>:</p>
  
  <pre><code>web:
    volumes:
      - .:/usr/src/app
  </code></pre>
  
  <p>But when I attempt to define this in my <code>Dockerfile</code>:</p>
  
  <pre><code>VOLUME .:/usr/src/app
  </code></pre>
  
  <p>It doesn't mount anything.</p>
  
  <p>Now I understand the complexities in that I'm using OSX and so I have to virtualize the environment to run Docker via boot2docker, and that boot2docker solves the copy issue by mounting <code>/User</code> to the linux machine running Docker.</p>
  
  <p>The documentation wants me to be explicit, but since my explicitness would require me to name my user (in this case <code>/User/krainboltgreene/code/krainboltgreene/blankrails</code>) it seems non-idiomatic, as that obviously doesn't work on other people's environments.</p>
  
  <p>What's the solution for this? I mean, I can technically get this all working without (as noted above the CLI and compose works fine), but it means not being able to do project specific provisioning (bower install, npm install, vulcanize, etc).</p>