rack-jruby.dockerfile 359 B

1234567891011121314151617181920
  1. FROM jruby:10.0
  2. RUN apt-get update -y && apt-get install netbase -y
  3. WORKDIR /rack
  4. COPY Gemfile* ./
  5. #RUN echo $(ruby config/auto_tune.rb | grep -Eo '[0-9]+' | head -n 1)
  6. RUN bundle config set with 'puma'
  7. RUN bundle install --jobs=8
  8. COPY . .
  9. ENV WEB_CONCURRENCY=0
  10. EXPOSE 8080
  11. CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080 -e production