Browse Source

feat: update bundle install steps in Dockerfile

pull/1804/head
Chirag-Bhatti 3 years ago committed by Sam Seed
parent
commit
02db8f6f27
  1. 5
      Dockerfile

5
Dockerfile

@ -16,7 +16,7 @@ RUN apk add --no-cache build-base yarn postgresql-dev git bash
RUN gem install bundler:2.3.14 --no-document
COPY .ruby-version Gemfile Gemfile.lock /app/
RUN bundle config set without "development"
RUN bundle config set without "development test"
RUN bundle install --jobs=4 --no-binstubs --no-cache
COPY package.json yarn.lock /app/
@ -47,6 +47,9 @@ CMD bundle exec rails s -e ${RAILS_ENV} -p ${PORT} --binding=0.0.0.0
FROM base as staging
RUN bundle config set without "development"
RUN bundle install --jobs=4 --no-binstubs --no-cache
CMD bundle exec rails s -e ${RAILS_ENV} -p ${PORT} --binding=0.0.0.0
FROM base as production

Loading…
Cancel
Save