Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
modify dockerfile to fix build issues (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-bdonohue authored Apr 8, 2024
1 parent fdbf857 commit a2559f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM phusion/passenger-full
FROM phusion/passenger-full:2.5.1

ARG PASSENGER_APP_ENV=production

Expand All @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit a2559f0

Please sign in to comment.