bundle install --without-source gemfury
ADD Gemfile .
ADD Gemfile.lock .
RUN bundle install --without-source https://gem.fury.io/my --jobs 4
# ↓ The following layer would be built every time
ARG GEMFURY_PASSWORD
RUN bundle config https://gem.fury.io/my $GEMFURY_PASSWORD
RUN bundle install --only-source https://gem.fury.io/my --jobs 4
RUN bundle check