grape-unicorn.dockerfile 318 B

123456789101112131415
  1. FROM ruby:3.3-rc
  2. ENV RUBY_YJIT_ENABLE=1
  3. RUN apt-get update -yqq && apt-get install -yqq nginx
  4. ADD ./ /grape
  5. WORKDIR /grape
  6. RUN bundle install --jobs=4 --gemfile=/grape/Gemfile --path=/grape/grape/bundle
  7. EXPOSE 8080
  8. CMD nginx -c /grape/config/nginx.conf && bundle exec unicorn -E production -c config/unicorn.rb