- Home
- Skills
- Ehtbanton
- Claudeskillsrepo
- Dockerignore Generator
dockerignore-generator_skill
- TypeScript
0
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ehtbanton/claudeskillsrepo --skill dockerignore-generator- SKILL.md736 B
Overview
This skill generates tailored .dockerignore files to speed up and shrink Docker builds by excluding unnecessary files and folders. It detects common project types and outputs a complete, standards-compliant .dockerignore ready to paste into the project root. The goal is practical, minimal ignore lists following Docker best practices to reduce image context size and build time.
How this skill works
On trigger phrases like "create dockerignore" or "dockerignore for <project>", the skill identifies the project type (Node.js, Python, Go, Java, etc.) from the prompt or provided files. It then creates a sensible .dockerignore using Docker ignore file syntax, excluding typical high-volume and transient paths (dependencies, build artifacts, editor files, tests) while preserving required sources. The output is a single .dockerignore file text formatted for immediate use.
When to use it
- Adding Docker support to an existing repository
- Optimizing build context to reduce Docker image size and build time
- Preparing a CI/CD pipeline where transfer size matters
- Creating images for microservices or single-function containers
- Excluding sensitive or local config files from image context
Best practices
- Exclude dependency folders (e.g., node_modules, .venv) to avoid copying large sets into the build context
- Ignore build artifacts and output directories (dist, build, target) to keep context clean
- Add editor and OS files (.vscode, .DS_Store, Thumbs.db) to avoid leaking local clutter
- Keep required source files and Dockerfile-adjacent assets included; only ignore items not needed during build
- Customize ignores per language/framework; the skill provides sensible defaults but review before committing
Example use cases
- Create dockerignore for Node.js project — excludes node_modules, test folders, docs, local env files
- Generate dockerignore for Python project — excludes .venv, __pycache__, .pytest_cache, build outputs
- Dockerignore for Go — excludes vendor, bin, build artifacts and editor files
- Generate dockerignore for Java/Maven — excludes target, .classpath, .project and IDE metadata
- Create minimal dockerignore for small utility where only src and Dockerfile are included
FAQ
No. The skill aims to exclude build-time and development artifacts only. It keeps source files and assets normally required by your Dockerfile, but always review before use.
Can I request a custom list of excludes?
Yes. Provide the project type or specific paths to exclude and the skill will incorporate those into the generated .dockerignore.