rack-sequel-jruby-base.dockerfile 349 B

123456789101112
  1. FROM techempower/jruby-9.1:0.1
  2. ADD ./ /rack-sequel
  3. WORKDIR /rack-sequel
  4. ENV THREAD_FACTOR=2
  5. RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile --path=/rack-sequel/rack-sequel/bundle
  6. ENV DBTYPE=mysql
  7. CMD bundle exec torquebox run --io-threads $(( MAX_CONCURRENCY / 2 )) --worker-threads $MAX_CONCURRENCY -b 0.0.0.0 -p 8080 -e production