sinatra-postgres.dockerfile 433 B

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