sinatra-postgres.dockerfile 251 B

123456789101112
  1. FROM ruby:2.4
  2. ADD ./ /sinatra
  3. WORKDIR /sinatra
  4. RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile --path=/sinatra/sinatra/bundle
  5. ENV DBTYPE=postgresql
  6. EXPOSE 8080
  7. CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production