Skip to content

Commit

Permalink
Experimental ruby:2.4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
webwurst committed Jan 7, 2017
1 parent 65faf22 commit cf9e69b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ ENV DISCOURSE_VERSION=1.7.0 \
WORKDIR /usr/src/app
RUN curl -sfSL https://github.com/discourse/discourse/archive/v${DISCOURSE_VERSION}.tar.gz \
| tar -zx --strip-components=1 -C /usr/src/app \
&& bundle config build.nokogiri --use-system-libraries \
&& bundle install --deployment --without test --without development
&& bundle config build.nokogiri --use-system-libraries

# works on ruby 2.4 with this:
RUN bundle config frozen 0 \
&& echo "gem 'json', git: 'https://github.com/flori/json.git', branch: 'v1.8'" >> Gemfile \
&& bundle update

RUN bundle install --deployment --without test --without development

EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]

0 comments on commit cf9e69b

Please sign in to comment.