rack-sequel-postgres-unicorn-mri.dockerfile 445 B

123456789101112131415161718192021
  1. FROM ruby:3.4
  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 puma'
  10. RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
  11. ENV DBTYPE=postgresql
  12. EXPOSE 8080
  13. CMD bundle exec unicorn -c config/mri_unicorn.rb -o 0.0.0.0 -p 8080 -E production