rack-itsi.dockerfile 478 B

1234567891011121314151617181920212223242526
  1. FROM ruby:3.5-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. RUN apt-get install -y build-essential libclang-dev
  8. WORKDIR /rack
  9. COPY Gemfile* ./
  10. ENV BUNDLE_FORCE_RUBY_PLATFORM=true
  11. RUN bundle config set with 'itsi'
  12. RUN bundle install --jobs=8
  13. COPY . .
  14. ENV MAX_THREADS=1
  15. EXPOSE 8080
  16. CMD bundle exec itsi start -C config/itsi.rb --bind "http://tfb-server:8080"