rails-unicorn.dockerfile 336 B

123456789101112
  1. FROM ruby:2.6
  2. RUN apt-get update -yqq && apt-get install -yqq nginx
  3. ADD ./ /rails
  4. WORKDIR /rails
  5. RUN bundle install --jobs=4 --gemfile=/rails/Gemfile --path=/rails/rails/bundle --without=postgresql
  6. CMD nginx -c /rails/config/nginx.conf && \
  7. DB_HOST=tfb-database bundle exec unicorn_rails -E production_mysql -c config/unicorn.rb