roda-sequel-postgres-torquebox-jruby.dockerfile 383 B

1234567891011
  1. FROM jruby:9.1
  2. ADD ./ /roda-sequel
  3. WORKDIR /roda-sequel
  4. ENV THREAD_FACTOR=2
  5. RUN bundle install --jobs=4 --gemfile=/roda-sequel/Gemfile --path=/roda-sequel/roda-sequel/bundle
  6. ENV DBTYPE=postgresql
  7. CMD export MAX_CONCURRENCY=$(( 2 * $(nproc) )) && bundle exec torquebox run --io-threads $(( MAX_CONCURRENCY / 2 )) --worker-threads $MAX_CONCURRENCY -b 0.0.0.0 -p 8080 -e production