Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Even though Rails 7.1 comes with a Dockerfile, there's still a lot of opinions you can add such as using Docker Compose to have a fully working out of the box experience that works in development and production.
If anyone is interested in that, I updated my example Rails app https://github.com/nickjj/docker-rails-example to use Rails 7.1 a few hours after 7.1 dropped.
If you want to automatically generate Dockerfiles for more versions of Rails (not just the latest) that detect OS packages that need to be installed from gems present in your Gemfile, check out https://github.com/fly-apps/dockerfile-rails
You can install it in your rails app by running:
1. bundle add dockerfile-rails
2. rails g dockerfile