| 1234567891011121314151617181920212223 |
- FROM ruby:3.5-rc
- ADD ./ /roda-sequel
- WORKDIR /roda-sequel
- ENV RUBY_YJIT_ENABLE=1
- # Use Jemalloc
- RUN apt-get update && \
- apt-get install -y --no-install-recommends libjemalloc2
- ENV LD_PRELOAD=libjemalloc.so.2
- ENV BUNDLE_FORCE_RUBY_PLATFORM=true
- RUN bundle config set with 'postgresql puma'
- RUN bundle install --jobs=8
- ENV RACK_ENV=production
- ENV DBTYPE=postgresql
- ENV WEB_CONCURRENCY=auto
- EXPOSE 8080
- CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080
|