roda-sequel-postgres.dockerfile 476 B

1234567891011121314151617181920212223
  1. FROM ruby:3.5-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 WEB_CONCURRENCY=auto
  15. EXPOSE 8080
  16. CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080