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

modify dockerfile to fix build issues #2210

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading