grape-unicorn.dockerfile 270 B

1234567891011
  1. FROM ruby:2.4
  2. RUN apt update -yqq && apt install -yqq nginx
  3. ADD ./ /grape
  4. WORKDIR /grape
  5. RUN bundle install --jobs=4 --gemfile=/grape/Gemfile --path=/grape/grape/bundle
  6. CMD nginx -c /grape/config/nginx.conf && bundle exec unicorn -E production -c config/unicorn.rb