Created
August 28, 2022 06:07
-
-
Save mdominiak/38d061444010209f037617fdbf3773e1 to your computer and use it in GitHub Desktop.
Docker configuration for Rails 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.git | |
.gitignore | |
tmp/* | |
log/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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