{"repo":"fly-apps/dockerfile-rails","free":true,"listed":false,"github":"https://github.com/fly-apps/dockerfile-rails","clone":"git clone https://github.com/fly-apps/dockerfile-rails.git","description":"Provides a Rails generator to produce Dockerfiles and related files.","language":"Dockerfile","stars":559,"topics":["docker","dockerfile","rails","ruby"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Overview Provides a Rails generator to produce Dockerfiles and related files. This is being proposed as the generator to be included in Rails 7.1, and a substantial number of pull requests along those lines have already been merged. This repository contains fixes and features beyond those pull requests. Highlights: Supports all Rails supported releases, not just Rails 7.1, and likely works with a number of previous releases. Can be customized using flags on the generate dockerfile command, and rerun to produce a custom tailored dockerfile based on detecting the actual features used by your application. Will set .node version , packageManager and install gems if needed to deploy your application. Can produce a docker-compose.yml file for locally testing your configuration before deploying. For more background: Motivation - why this generator was created and what problems it is meant to solve Demos - scripts to copy and paste into an empty directory to launch demo apps Test Results - expected outputs for each test Usage Install from the root of your Rails project by running the following. The --optimistic flag will make sure you always get the latest dockerfile-rails gem when you run bundle update && rails g dockerfile . General option: --force - overwrite existing files --skip - keep existing files If neither are specified, you will be prompted if a file exists with different contents. If both are specified, --force takes precedence. Runtime Optimizations: --alpine - use alpin","default_branch":null,"files":null,"tree":[],"storefront":"/r/fly-apps","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fly-apps/dockerfile-rails/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}