Dockerfile for Ruby on Rails Deployments
We recently climbed the train of Docker images for production deployment at work, so I found myself in need of a good tutorial on Dockerfiles. Although there is a lot of information on Dockerfile best practices, the Ruby on Rails guides I looked up were a little bit outdated for modern applications. On top of that, the Rails official images are deprecated for some time now, so the task of creating a
Dockerfile became challenging. I’ll go step-by-step on what I ended up with, explaining my thought process and any issues I stumbled upon along the way.