From b326fbb6adfbcde6068e51459c14d0e1d701ff03 Mon Sep 17 00:00:00 2001 From: sb-benohe Date: Mon, 14 Oct 2024 14:37:23 -0400 Subject: [PATCH] update ruby to 3.2.5 --- .ruby-version | 2 +- Dockerfile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ruby-version b/.ruby-version index b347b11..ada8747 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.3 +3.2.5d diff --git a/Dockerfile b/Dockerfile index 40c466c..deb290b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM phusion/passenger-ruby32:3.0.2 +FROM phusion/passenger-ruby32:3.0.7 ENV HOME /root CMD ["/sbin/my_init"] @@ -15,13 +15,13 @@ ADD config/webapp.conf /etc/nginx/sites-enabled/webapp.conf # Prepare folders RUN mkdir /home/app/qrda-export -RUN bash -lc "rvm install ruby-3.2.3 && rvm --default use ruby-3.2.3" +RUN bash -lc "apt update && apt upgrade -y && rvm get stable && rvm install ruby-3.2.5 && rvm --default use ruby-3.2.5" # Add our app COPY --chown=app:app . /home/app/qrda-export RUN bundle config set --local deployment 'true' RUN su - app -c "cd /home/app/qrda-export \ - && rvm-exec 3.2.3 bundle install" + && rvm-exec 3.2.5 bundle install" # Clean up when done. -RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ No newline at end of file +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /usr/local/rvm/rubies/ruby-3.2.5/lib/ruby/gems/3.2.0/gems/rvm-1.11.3.9 \ No newline at end of file