title: Docker out of space when running bundle install
body: <p>I'm trying to build an image for my app, <code>FROM ruby:2.2.1</code>, my app folder sums up about 200 mb compressed. </p>
  
  <p>I'm receiving a <code>"Your disk is full"</code> when running <code>bundle install</code>. It's also takes too much time to create the compressed context. However runing a <code>df</code> on <code>/var/</code> shows more than 1TB available, this however is not what bother me.</p>
  
  <p>My question is, can I ignore everything using an <code>*</code> in <code>.dockerignore</code> and then add my root project folder as a volume using docker-compose? does this sounds like a good idea?</p>
  
  <p>I've also think in:</p>
  
  <ul>
  <li>Move the <code>Dockerfile</code> to a subfolder (but I think i'm not able to add a parent folder as volume using docker compose</li>
  <li>Do a git clone in the Dockerfile, but as I already have the files on my computer this sounds like a dumb step.</li>
  <li>Should I just figure out how to add more disk space to the docker container? But I still dont like the time that it takes to create the context.</li>
  </ul>