Skip to content

Instantly share code, notes, and snippets.

@mdominiak
Created August 28, 2022 06:07
Show Gist options
  • Save mdominiak/38d061444010209f037617fdbf3773e1 to your computer and use it in GitHub Desktop.
Save mdominiak/38d061444010209f037617fdbf3773e1 to your computer and use it in GitHub Desktop.
Docker configuration for Rails 7
.git
.gitignore
tmp/*
log/*
FROM ruby:3.1.2
RUN gem install foreman --no-doc
COPY Gemfile* /usr/src/app/
WORKDIR /usr/src/app
RUN bundle install
COPY . /usr/src/app/
CMD ["foreman", "start", "-f", "Procfile.dev"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment