Skip to content

Commit

Permalink
update ruby to 3.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-benohe committed Oct 14, 2024
1 parent d7fd1bd commit b326fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.3
3.2.5d
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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/*
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

0 comments on commit b326fbb

Please sign in to comment.