rack-unicorn.dockerfile 439 B

123456789101112131415161718192021
  1. FROM ruby:3.2
  2. #RUN apt-get update -yqq && apt-get install -yqq nginx
  3. ENV BUNDLE_FORCE_RUBY_PLATFORM=true
  4. ENV RUBY_YJIT_ENABLE=1
  5. WORKDIR /rack
  6. COPY Gemfile ./
  7. RUN bundle config set without 'development test'
  8. RUN bundle install --jobs=8
  9. COPY . .
  10. EXPOSE 8080
  11. #CMD nginx -c /rack/config/nginx.conf && bundle exec unicorn -E production -c config/unicorn.rb
  12. CMD bundle exec unicorn -c config/unicorn.rb -o 0.0.0.0 -p 8080 -E production