12345678910111213141516171819 |
- FROM ruby:3.3
- ENV RUBY_YJIT_ENABLE=1
- # Use Jemalloc
- RUN apt-get update && \
- apt-get install -y --no-install-recommends libjemalloc2
- ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- ADD ./ /sinatra
- WORKDIR /sinatra
- RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile --path=/sinatra/sinatra/bundle
- ENV DBTYPE=postgresql
- EXPOSE 8080
- CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production
|