Agent skill · software engineering · aiskillstore
containerizing-applications
Containerizes applications with Docker, docker-compose, and Helm charts. Use when creating Dockerfiles, docker-compose configurations, or Helm charts for Kubernetes. Includes Docker Hardened Images (95% fewer CVEs), multi-stage builds, and 15+ battle-tested gotchas.
Why this skill is useful
Adds multiple executable Dockerfile and Helm chart templates that streamline application containerization and deployment.
What it needs
Requires docker, docker-compose, helm installed locally. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Containerizing Applications Quick Start 1. Run impact analysis first (env vars, network topology, auth/CORS) 2. Generate Dockerfiles using patterns below 3. Create docker-compose.yml with proper networking 4. Package as Helm chart for Kubernetes Dockerfile Patterns FastAPI/Python (Multi-stage with uv) Next.js (Standalone) docker-compose Pattern Helm Chart Structure Chart.yaml values.yaml Pattern Helm Commands Battle-Tested Gotchas (15+) 1. Browser vs Server URLs Problem: Browser runs on host, server runs in container 2. Healthcheck IPv6 Issue Problem: wget http://localhost:3000 fails with IPv6 3. MCP Server 421 Misdirected Request Problem: FastMCP rejects Docker service names 4. SQLModel Tables Not Created Problem: Models not imported before createall() 5. Database Migration Order Problem: Drizzle db:push drops tables not in schema Solution: Start postgres → Run Drizzle → Then start API 6. uv Network Timeout 7. Missing Syntax Directive 8. localhost in Container Use Docker service names (api, web, sso) for server-side, NOT localhost 9. Auth Origins Add Docker service names to trustedOrigins BEFORE building 10. Service Startup Order Use dependson with condition: servicehealthy 11. Health Check Timing Use startperiod (e.g., 40s) for apps that take time to start 12. pgAdmin Email Validation Use valid email like admin@example.com, not .local domains 13. Playwright in Dependencies Keep test tools in devDependencies (300MB+ bloat) 14. MCP Health Check 406 Add separate /health endpoint via ASGI middleware 15. Helm Comma Parsing Use values file instead of --set for comma-containing values Production Security Docker Hardened Images (Recommended) 95% fewer CVEs than community images. Free under Apache 2.0. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/containerizing-applications