title: Access volume in docker build
body: <p>I am using docker compose and i have created a volume. I have mulitple containers. I am facing issue to run commands in the docker container. 
  I have node js container which have separate frontend and backend folders.  i need to run npm install in both the folders. </p>
  
  <pre><code>version: '2'
  
  services:
  
  ### Applications Code Container #############################
  
      applications:
        image: tianon/true
        volumes:
          - ${APPLICATION}:/var/www/html  
  
  
      node:
        build:
          context: ./node
        volumes_from:
          - applications
        ports:
          - "4000:30001"
        networks:
          - frontend
          - backend    
  </code></pre>
  
  <p>This is my docker file for node</p>
  
  <pre><code>FROM node:6.10
  
  MAINTAINER JC Gil &lt;sensukho@gmail.com&gt;
  
  ENV TERM=xterm
  
  ADD script.sh /tmp/
  RUN chmod 777 /tmp/script.sh
  
  RUN apt-get update &amp;&amp; apt-get install -y netcat-openbsd
  
  WORKDIR /var/www/html/Backend
  
  RUN npm install
  
  EXPOSE 4000
  CMD ["/bin/bash", "/tmp/script.sh"]
  </code></pre>
  
  <p>my workdir is empty as location /var/www/html/Backend is not available while building but available when i conainter is up. So my command npm install do not work</p>