sinatra-sequel-postgres.dockerfile 481 B

123456789101112131415161718192021222324
  1. FROM ruby:4.0-rc
  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=libjemalloc.so.2
  7. ADD ./ /sinatra-sequel
  8. WORKDIR /sinatra-sequel
  9. ENV BUNDLE_WITH=postgresql:puma
  10. RUN bundle install --jobs=4 --gemfile=/sinatra-sequel/Gemfile
  11. ENV APP_ENV=production
  12. ENV DBTYPE=postgresql
  13. ENV WEB_CONCURRENCY=auto
  14. ENV MAX_THREADS=5
  15. EXPOSE 8080
  16. CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080