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