# /dockerize - Docker & Containerization Configurator

> Multi-stage Dockerfile, docker-compose.yml, and production container hardening.

Canonical: https://www.agentickit.co/commands/dockerize
Last updated: 2026-11-18

Creates optimized multi-stage Dockerfiles and docker-compose configurations for development and production, minimizing image size and maximizing security.

**Usage:** `Use when containerizing your application for AWS ECS, Fly.io, Railway, or Kubernetes.`

## Pipeline
1. Configure next.config.ts with output: 'standalone'
2. Create multi-stage Dockerfile (deps, builder, runner stages)
3. Set up non-root security permissions and runtime environment variables
4. Generate docker-compose.yml for local multi-service development

## Output files
- `Dockerfile`
- `docker-compose.yml`
- `.dockerignore`

**Claude Code frontmatter:** `argument-hint: [deploy target, e.g. Railway or Fly.io]` · `model: inherit`

## Related
- [devops-engineer](https://www.agentickit.co/agents/devops-engineer)
- [cloud-architect](https://www.agentickit.co/agents/cloud-architect)
- [docker-deploy](https://www.agentickit.co/skills/docker-deploy)
- [terraform-iac](https://www.agentickit.co/skills/terraform-iac)
