dockerize
Skill2 starsChanged 4 months agoMITView on GitHub
Generate a production-ready Dockerfile, .dockerignore, and optional docker-compose for the project, matching its language and build setup. Use when the user says "dockerize this", "write a Dockerfile", "containerize the app", "add docker-compose", or "how do I run this in a container".
3 other projects use a version of this.
Adopted by
Most recently taken up by
- OneByJorah/VirtOfficetheir own version, first seen Nov 1, 2026
- OneByJorah/offivotheir own version, first seen Oct 20, 2026
- walterlow/claude-skillstheir own version, first seen Jan 30, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- OneByJorah/offivo★ 24same name
- OneByJorah/VirtOffice★ 24same 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 repository68 other files it gives its agents.
- a11ySkill
- api-docsSkill
- audit-logSkill
- benchmarkSkill
- bisectSkill
- cacheSkill
- changelogSkill
- cherry-pickSkill
- ci-setupSkill
- codeownersSkill
- commit-messageSkill
- connection-poolSkill
- contributingSkill
- coverageSkill
- db-migrateSkill
- dead-codeSkill
- debugSkill
- depsSkill
- diagramSkill
- docstringSkill
- e2eSkill
- env-exampleSkill
- error-handlingSkill
- explainSkill
- feature-flagSkill
- flaky-testSkill
- gitignoreSkill
- graceful-shutdownSkill
- graphqlSkill
- healthcheckSkill
- i18nSkill
- idempotencySkill
- licenseSkill
- lint-fixSkill
- loggingSkill
- migrateSkill
- mockSkill
- onboardSkill
- optimizeSkill
- paginationSkill
- pr-descriptionSkill
- pre-commitSkill
- profileSkill
- prune-branchesSkill
- rate-limitSkill
- readmeSkill
- rebaseSkill
- refactorSkill
- regexSkill
- releaseSkill
- resolve-conflictsSkill
- retrySkill
- review-diffSkill
- scaffoldSkill
- secrets-scanSkill
- security-headersSkill
- seedSkill
- soft-deleteSkill
- sqlSkill
- squashSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Follow security best practices: run as a non-root user, don't bake secrets into layers, copy lockfiles and install deps before copying …
- Distinctive: line 30
If an existing Dockerfile is present, read it and propose targeted edits rather than replacing it wholesale.
- Very specific: line 31
After writing, print the exact docker build and docker run (or docker compose up) commands to build and run it.
≈ “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
Project type detection
!ls package.json pyproject.toml requirements.txt Cargo.toml go.mod pom.xml build.gradle Gemfile composer.json 2>/dev/null
!ls Dockerfile .dockerignore docker-compose.yml docker-compose.yaml compose.yaml 2>/dev/null && echo "(existing docker files above — update, don't blindly overwrite)"
!cat package.json 2>/dev/null | head -40
Instructions
Generate Docker assets for this project (scoped to $ARGUMENTS if a service or base image was named).
Rules
- Detect the stack first. Infer language, runtime version, package manager, build step, and start command from the files above and lockfiles. Match the actual versions in use — don't pin to
latest. - Use a multi-stage build for compiled languages and for any project with a build step (install deps + build in one stage, copy only artifacts into a slim runtime stage). This keeps the final image small.
- Pick a minimal, pinned base image (e.g.
node:22-slim,python:3.12-slim,golang:1.23→gcr.io/distrolessoralpineruntime). State why. - Follow security best practices: run as a non-root user, don't bake secrets into layers, copy lockfiles and install deps before copying source (to maximize layer caching), and use
--no-install-recommends/--frozen-lockfilestyle flags. - Write a matching
.dockerignore— excludenode_modules,.git, build output, env files, and local caches so the build context stays small. - Expose the right port and set a sensible
CMD/ENTRYPOINT. Add aHEALTHCHECKwhen the service has an HTTP endpoint. - Generate
docker-compose.ymlonly if the user asks, or the project clearly needs companion services (a database, cache, queue). Wire env vars and volumes; don't invent services that aren't referenced in the code or config. - If an existing Dockerfile is present, read it and propose targeted edits rather than replacing it wholesale.
- After writing, print the exact
docker buildanddocker run(ordocker compose up) commands to build and run it.
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.

