roda-sequel-postgres.dockerfile 427 B

123456789101112131415161718192021
  1. FROM ruby:3.4
  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 'puma'
  11. RUN bundle install --jobs=8
  12. ENV DBTYPE=postgresql
  13. EXPOSE 8080
  14. CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production