roda-sequel-postgres.dockerfile 491 B

12345678910111213141516171819202122232425
  1. FROM ruby:4.0-rc
  2. ADD ./ /roda-sequel
  3. WORKDIR /roda-sequel
  4. ENV RUBY_YJIT_ENABLE=1
  5. # Use Jemalloc
  6. RUN apt-get update && \
  7. apt-get install -y --no-install-recommends libjemalloc2
  8. ENV LD_PRELOAD=libjemalloc.so.2
  9. ENV BUNDLE_FORCE_RUBY_PLATFORM=true
  10. RUN bundle config set with 'postgresql puma'
  11. RUN bundle install --jobs=8
  12. ENV RACK_ENV=production
  13. ENV DBTYPE=postgresql
  14. ENV MAX_THREADS=5
  15. ENV WEB_CONCURRENCY=auto
  16. EXPOSE 8080
  17. CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080