diff --git a/Dockerfile b/Dockerfile index 7dbb8473e..27b2d6536 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ ADD ./Gemfile /rails_app/ ADD ./Gemfile.lock /rails_app/ RUN bundle config --global jobs `cat /proc/cpuinfo | grep processor | wc -l | xargs -I % expr % - 1` -RUN gem update --system +RUN gem i "rubygems-update:~>3.4.22" --no-document && update_rubygems RUN bundle install --without development test ADD ./ /rails_app diff --git a/Dockerfile.dev b/Dockerfile.dev index d32b626ac..d7d98a719 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -19,7 +19,7 @@ ADD ./Gemfile /rails_app/ ADD ./Gemfile.lock /rails_app/ RUN bundle config --global jobs `cat /proc/cpuinfo | grep processor | wc -l | xargs -I % expr % - 1` -RUN gem update --system +RUN gem i "rubygems-update:~>3.4.22" --no-document && update_rubygems RUN bundle install ADD ./ /rails_app