Skip to content

Commit

Permalink
install compatible version of rubygem update and then update system
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 committed Jan 2, 2024
1 parent 4768229 commit 2b4a348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b4a348

Please sign in to comment.