rails-postgresql.dockerfile 290 B

12345678910111213
  1. FROM ruby:2.6
  2. ADD ./ /rails
  3. WORKDIR /rails
  4. RUN bundle install --jobs=4 --gemfile=/rails/Gemfile --path=/rails/rails/bundle --without mysql
  5. ENV DBTYPE=postgresql
  6. EXPOSE 8080
  7. CMD DB_HOST=tfb-database bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production_postgresql