# Use the official Ruby image. # https://hub.docker.com/_/ruby FROM ruby:2.5 # Install production dependencies. WORKDIR /usr/src/app COPY Gemfile Gemfile.lock ./ ENV BUNDLE_FROZEN=true RUN bundle install # Copy local code to the container image. COPY . . # Service must listen to $PORT environment variable. # This default value facilitates local development. ENV PORT 8080 # Run the web service on container startup. CMD ["ruby", "./app.rb"]