Update bundle commands (#2876)

Stop using deprecated commands
This commit is contained in:
Benson Muite 2021-09-01 00:18:58 +03:00 committed by GitHub
parent a11d58e254
commit 2ff19c998d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ COPY Gemfile* ./
COPY Gemfile Gemfile.lock $RAILS_ROOT/ COPY Gemfile Gemfile.lock $RAILS_ROOT/
RUN bundle config --global frozen 1 \ RUN bundle config --global frozen 1 \
&& bundle install --deployment --without development:test:assets -j4 --path=vendor/bundle \ && bundle config set deployment 'true' \
&& bundle config set without 'development:test:assets' \
&& bundle install -j4 --path=vendor/bundle \
&& rm -rf vendor/bundle/ruby/2.7.0/cache/*.gem \ && rm -rf vendor/bundle/ruby/2.7.0/cache/*.gem \
&& find vendor/bundle/ruby/2.7.0/gems/ -name "*.c" -delete \ && find vendor/bundle/ruby/2.7.0/gems/ -name "*.c" -delete \
&& find vendor/bundle/ruby/2.7.0/gems/ -name "*.o" -delete && find vendor/bundle/ruby/2.7.0/gems/ -name "*.o" -delete