Rails on Docker
- Start with Alpine
- Multi-stage build
- Trim build cruft (bundler cache, node_modules, etc)
See also, Jason describing the basics of docker for server dependencies (database, redis, elasticsearch being good opportunities), while still running rails system-native.