rails-unicorn.dockerfile 301 B

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