From 7cf481d094b1053b1b028418461650c784ae70c2 Mon Sep 17 00:00:00 2001 From: Brendan Donohue <30727645+sb-bdonohue@users.noreply.github.com> Date: Mon, 8 Apr 2024 14:33:40 -0400 Subject: [PATCH] modify dockerfile to fix build issues (#2210) --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4013a65f7..52fedcec4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM phusion/passenger-full +FROM phusion/passenger-full:2.5.1 ARG PASSENGER_APP_ENV=production @@ -9,7 +9,6 @@ ADD bonnie.conf /etc/nginx/sites-enabled/bonnie.conf COPY --chown=app:app . /home/app/bonnie -RUN bash -lc "rvm install ruby-${RUBY_VERSION} && rvm --default use ruby-${RUBY_VERSION}" RUN rm -f /etc/service/nginx/down \ && rm -f /etc/nginx/sites-enabled/default \ @@ -20,6 +19,9 @@ RUN rm -f /etc/service/nginx/down \ && apt-get install shared-mime-info -y RUN su - app -c "cd /home/app/bonnie \ + && rvm autolibs disable \ + && rvm install ruby-${RUBY_VERSION} \ + && rvm --default use ruby-${RUBY_VERSION} \ && curl -O https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem \ && gem install bundler -v 2.1.4 \ && bundle install \