From 2b4a348dccf542f8710646d50b56ebf80059774d Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Tue, 2 Jan 2024 11:15:45 -0600 Subject: [PATCH] install compatible version of rubygem update and then update system --- Dockerfile | 2 +- Dockerfile.dev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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