What problem does it solve?
AI coding agents generate broken, bloated, or insecure production Docker and Kamal deployment configurations for Ruby on Rails 8 apps, leading to failed deploys, leaked secrets, and wasted engineering time troubleshooting avoidable infrastructure issues.
Core Features & Use Cases
- Opinionated multi-stage Docker setup: Uses ruby:3.x-slim base images to avoid native gem compilation failures with nokogiri, pg, and sassc, cutting image size by ~400MB compared to single-stage builds.
- Zero-downtime Kamal 2 deployment: Pre-configured deploy.yml with Kamal Proxy health checks, proper migration execution hooks, and Solid Queue worker support.
- Secure secrets management: Layered approach using Rails credentials, Kamal env secrets, and runtime env vars to avoid credential leaks in images or logs.
- Use Case: A team shipping a Rails 8 app to production without Kubernetes or Heroku markup can use this skill to generate a production-ready Dockerfile and Kamal config in minutes, avoiding common infra pitfalls that waste hours of debugging.
Quick Start
Use the kamal-docker-production skill to generate a production-ready multi-stage Dockerfile and Kamal 2 deploy configuration for your Rails 8 application, following best practices for image size, zero-downtime deploys, and secure secrets management.