dockerize
Skill23 starsChanged 15 days agoMITView on GitHub
Containerize a project with a production-quality Dockerfile and docker-compose.yml. Use when a repo needs Docker support, a smaller or safer image, or a one-command start.
- Reads credentials
Files
dockerize
Dockerfile
- Multi-stage build. Final stage has only what runtime needs.
- Pinned base image tag (digest once verified). No
latest. - Non-root
USER. Own files with--chown. HEALTHCHECKthat hits a real endpoint or command.- Order layers for cache: dependency manifests first, source later.
.dockerignoreexcludes.git, docs, tests,.env*,node_modules.- Passes
hadolintwith no warnings.
docker-compose.yml
- One command start:
docker compose up -d --build. - Ports bound to
127.0.0.1only. Never0.0.0.0. - Configuration through
${VAR:-default}and a documented.env.example. No secrets in the file. - Hardening when the app allows it:
read_only: true,cap_drop: [ALL],no-new-privileges. - Named volumes for persistent data, documented in the README.
Verify
docker build .
docker compose config -q
docker compose up -d --build
docker compose ps # healthy
docker compose down -vImage name for publishing: ghcr.io/<owner-lowercase>/<repo-lowercase>.
Other versions3 projects use a version of this.
Word for word · 1
- OneByJorah/offivo★ 17100% same
Edited · 0
None found.
Wrote their own version · 2
- Pradnyeshp/Claude-Skills★ 2same name
- walterlow/claude-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- pr-workflowSkill
- readme-writerSkill
- release-checklistSkill
- repo-polishSkill
- screenshot-captureSkill
- security-scrubSkill
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.

