dockerfile
$
npx mdskill add hrconsultnj/claude-plugins/dockerfileGenerates or validates Dockerfiles with security best practices like multi-stage builds and non-root users for production-ready containerization.
- Helps developers create secure and optimized Dockerfiles for various application stacks.
- Integrates with composure-fetch for loading steps, handling caching, decryption, and authentication.
- Uses predefined templates and best practices to recommend or validate Dockerfile configurations.
- Presents results through generated or validated Dockerfiles and .dockerignore files.
SKILL.md
.github/skills/dockerfileView on GitHub ↗
---
name: dockerfile
description: Generate or validate Dockerfiles with security best practices. Multi-stage builds, non-root user, layer caching, .dockerignore.
argument-hint: "[--validate] [--generate]"
---
Generate production-ready Dockerfiles or validate existing ones against security and performance best practices. Produces multi-stage builds with non-root users, health checks, optimized layer caching, and proper `.dockerignore` files.
## Content Loading
Load each step through the fetch command (handles caching, decryption, and auth):
```bash
"~/.composure/bin/composure-fetch.mjs" skill shipyard dockerfile {step-filename}
```
**Do NOT read cache files directly** — they are encrypted at rest. Always use the fetch command above.
## Steps
| # | File |
|---|------|
| 1 | `01-detect-stack.md` |
| 2 | `02-generate.md` |
| 3 | `03-validate.md` |
## Templates
- `go.Dockerfile`
- `nextjs.Dockerfile`
- `nginx-spa.conf`
- `node-generic.Dockerfile`
- `python-fastapi.Dockerfile`
- `rust.Dockerfile`
- `vite-spa.Dockerfile`