A collection of Dockerfiles I use for workflow automation.
Create rails applications without having to install Ruby's Runtime.
- Build image:
Ruby version and Rails version are optional build args:
docker build -t my-app - < /path/to/docker-utils/Dockerfile.new-rails-app
docker build --build-arg RUBY_VERSION=your.ruby.version --build-arg RAILS_VERSION=your.rails.version -t my-app - < /path/to/docker-utils/Dockerfile.new-rails-app
- Run:
docker run -it --rm --name my-app -v "$PWD":/var my-app rails new --help