Run rails new --help to see all of the options you can use to create a new Rails application:
Output for Rails 8+
Usage:
rails COMMAND [options]
You must specify a command:
Based on https://docs.docker.com/compose/rails/
FROM ruby:2.5.1
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN mkdir /site
This file contains hidden or 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
| s/\([^.a-zA-Z_-]\)stub\>/\1double/g | |
| s/\([^.a-zA-Z_-]\)mock\>/\1double/g | |
| s/\.returns\>/.and_return/g | |
| s/\.yields\>/.and_yield/g | |
| s/\(\S\+\)\.stubs(/allow(\1).to receive(/g | |
| s/\(\S\+\)\.expects(/expect(\1).to receive(/g | |
| s/at_least_once/at_least(:once)/g | |
| s/at_most_once/at_most(:once)/g | |
| s/\.raises\>/.and_raise/g | |
| s/\(allow\|expect\)(\(\S\+\)\.any_instance).to receive/\1_any_instance_of(\2).to receive/g |