rack-sequel-postgres.dockerfile 448 B

123456789101112131415161718192021
  1. FROM ruby:3.4-rc
  2. ADD ./ /rack-sequel
  3. WORKDIR /rack-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. RUN bundle config set without 'mysql passenger unicorn'
  10. RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
  11. ENV DBTYPE=postgresql
  12. EXPOSE 8080
  13. CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production