Skip to content

Instantly share code, notes, and snippets.

@adam12
Created August 24, 2020 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam12/7613ae85f5e5bf3c28a8ed8a4e826273 to your computer and use it in GitHub Desktop.
Save adam12/7613ae85f5e5bf3c28a8ed8a4e826273 to your computer and use it in GitHub Desktop.
Ruby Dockerfile
FROM ruby:2.7
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
EXPOSE 9292
CMD ["rackup", "-o", "0.0.0.0", "-p", "9292"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment