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