forked from External/greenlight
Improve container build: GRN2-156 (#582)
* Cache gems * Remove debug statement * Use postgress by default * Update sample.env
This commit is contained in:
committed by
Jesus Federico
parent
18214037c3
commit
ccbd46f045
@ -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
|
||||
|
Reference in New Issue
Block a user