Improve container build: GRN2-156 (#582)

* Cache gems

* Remove debug statement

* Use postgress by default

* Update sample.env
This commit is contained in:
shawn-higgins1
2019-06-26 10:15:53 -04:00
committed by Jesus Federico
parent 18214037c3
commit ccbd46f045
4 changed files with 39 additions and 23 deletions

View File

@ -17,12 +17,12 @@ WORKDIR $RAILS_ROOT
# Set Rails environment.
ENV RAILS_ENV production
COPY Gemfile* ./
RUN bundle install --without development test --deployment --clean
# Adding project files.
COPY . .
# Install gems.
RUN bundle install --without development test --deployment --clean
# Precompile assets.
RUN bundle exec rake assets:clean
RUN bundle exec rake assets:precompile