From 3eb5fcd162e92a45ea0bcccfb7f0b82df81d471f Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 5 Oct 2015 08:41:31 -0400 Subject: [PATCH] Made dev dockerfile more efficient --- rails-dev-Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rails-dev-Dockerfile b/rails-dev-Dockerfile index 27ffff9..2378078 100644 --- a/rails-dev-Dockerfile +++ b/rails-dev-Dockerfile @@ -1,20 +1,19 @@ FROM ruby:2.2.3 RUN apt-get update -RUN apt-get -y upgrade -RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential +RUN apt-get install -y build-essential RUN apt-get install -y nodejs sqlite3 RUN gem install --no-rdoc --no-ri bundler +ADD Gemfile* /tmp/ +WORKDIR /tmp +RUN bundle install --without production + RUN mkdir /rails WORKDIR /rails VOLUME ["/rails"] -ADD Gemfile* /rails/ -RUN bundle install --without production -ADD . /rails/ - EXPOSE 3000 CMD /bin/bash