dockerize-anything
Skill5 starsChanged 15 days agoMITView on GitHub
Generates a production-ready, secure, small Dockerfile, .dockerignore and docker-compose.yml for any project by detecting its stack, then builds and verifies the image. Use when the user asks to dockerize, containerize, add Docker or compose, or reduce Docker image size.
- Reads credentials
- Installs packages
In this repository56 other files it gives its agents.
- docs/llms.txtllms.txt
- a11y-fixerSkill
- ad-copy-generatorSkill
- agent-guardrailsSkill
- agent-memory-keeperSkill
- ai-slop-detectorSkill
- api-to-sdkSkill
- app-store-optimizerSkill
- architecture-doctorSkill
- brand-voice-guideSkill
- bug-detectiveSkill
- changelog-from-gitSkill
- codebase-explainerSkill
- codebase-time-machineSkill
- commit-craftSkill
- competitor-spySkill
- content-repurposerSkill
- cost-cutterSkill
- demo-recorderSkill
- dependency-doctorSkill
- durable-agent-workflowsSkill
- e2e-flow-testerSkill
- email-campaign-writerSkill
- env-secrets-guardSkill
- gh-actions-auditorSkill
- hook-generatorSkill
- incident-commanderSkill
- influencer-outreachSkill
- instagram-growth-managerSkill
- landing-page-roasterSkill
- launch-post-writerSkill
- meeting-notes-to-ticketsSkill
- merge-conflict-resolverSkill
- migration-wizardSkill
- plan-grillerSkill
- prompt-injection-scannerSkill
- pr-reviewer-proSkill
- readme-glow-upSkill
- roast-my-githubSkill
- screenshot-to-componentSkill
- seo-blog-writerSkill
- skill-creator-proSkill
- skill-finderSkill
- skills-doctorSkill
- social-analytics-reporterSkill
- social-media-calendarSkill
- social-media-managerSkill
- sql-optimizerSkill
- startup-idea-validatorSkill
- tdd-loopSkill
- terse-modeSkill
- test-gap-hunterSkill
- tiktok-viral-creatorSkill
- ui-tasteSkill
- youtube-script-writerSkill
- youtube-seo-optimizerSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
No secrets in the image. Pass them as runtime env or BuildKit secrets.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dockerize Anything
Production-grade containers, not "FROM node, COPY . ., npm start".
1. Detect
- Language, version (
.nvmrc,engines,.python-version,go.mod,rust-toolchain), and package manager plus lockfile. - Build command, start command, port, and the env vars the app reads (search for
process.env,os.environ,os.Getenv...). - Services it depends on (Postgres, Redis, Mongo...) from config and dependencies.
- Whether a Dockerfile already exists. If so, improve it instead of replacing it.
2. Dockerfile rules
- Multi-stage: a
deps→build→runtimechain. Only runtime artifacts end up in the final stage. - Pinned, slim base images:
node:<ver>-alpineor-slim,python:<ver>-slim, andgcr.io/distroless/staticfor Go and Rust static binaries. - Layer caching: copy the lockfiles first, install dependencies, then copy the source.
- Install production dependencies only (
npm ci --omit=dev,pip install --no-cache-dir,CGO_ENABLED=0). - Non-root user,
EXPOSE <port>,HEALTHCHECKwhen there's an HTTP endpoint, and exec-formCMD. - No secrets in the image. Pass them as runtime env or BuildKit secrets.
3. Also generate
.dockerignore:.git,node_modules,.venv, build output,.env*, logs, tests, and docs if they aren't needed.docker-compose.yml: the app plus the detected services, with named volumes,healthcheck,depends_on: condition: service_healthyandenv_file: .env..env.exampleentries for each variable the app requires.
4. Verify (if Docker is available)
docker build -t <app>:local .
docker images <app>:local --format '{{.Size}}'
docker compose up -d && docker compose ps && docker compose logs --tail=50 appFix any failures, then report the final image size and how to run it. Run docker compose down when you're done.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

