Skip to content

Commit

Permalink
Configure gem install for production
Browse files Browse the repository at this point in the history
This speeds up gem install, is configured for deployment and doesn't
install dev and test gems.

This reflects that this Dockerfile is intended for running the app in a
production environment.
  • Loading branch information
kevindew committed Nov 12, 2020
1 parent 7011200 commit 45a3115
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD .ruby-version $APP_HOME/
ADD Gemfile* $APP_HOME/
RUN bundle install
RUN bundle config set deployment 'true'
RUN bundle config set without 'development test'
RUN bundle install --jobs 4

ADD . $APP_HOME

Expand Down

0 comments on commit 45a3115

Please sign in to comment.