Skip to content

Commit

Permalink
Use bundle.ruby2.5 instead of bundle in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuntaner committed Feb 21, 2018
1 parent c9d61d0 commit ac5a84d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

RUN bundle config build.nokogiri --use-system-libraries
RUN bundle.ruby2.5 config build.nokogiri --use-system-libraries

ENV RAILS_ENV production

Expand Down Expand Up @@ -43,4 +43,4 @@ scc:\n\

EXPOSE 4224

CMD dockerize -wait tcp://$MYSQL_HOST:3306 -timeout 60s true && bundle exec rails s -b 0.0.0.0 -p 4224
CMD dockerize -wait tcp://$MYSQL_HOST:3306 -timeout 60s true && bundle.ruby2.5 exec rails s -b 0.0.0.0 -p 4224
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
extends:
service: base
file: docker-compose-base.yml
command: bash -c 'bundle exec rails db:migrate && bundle exec rails s -b rmt'
command: /bin/bash -c 'bundle.ruby2.5 exec rails db:migrate && bundle.ruby2.5 exec rails s -b rmt'

nginx:
image: nginx
Expand Down

0 comments on commit ac5a84d

Please sign in to comment.