grape-unicorn.dockerfile 291 B

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