.dockerignore Generator creates ignore rules for dependencies, Git metadata, caches, logs, and local secrets. It helps reduce Docker build context size and avoid accidental file inclusion.
Keep local dependencies, caches, logs, and secrets out of Docker build contexts. Everything runs locally in this tab.
Yes. The tool is free and runs directly in your browser with no account required.
No. The output is assembled locally in the browser tab from the templates you select — nothing is sent to a server.
Quickly assembling .dockerignore rules that keep dependencies, Git metadata, caches, and secret files out of your Docker build context.
Four checkboxes: JavaScript (node_modules, debug logs, .next, dist, coverage), Python (__pycache__, .venv, pytest/mypy caches), Git (.git, .gitignore, .github), and Secrets (.env files, .pem, .key).
Docker sends the entire build context to the daemon before building, even files you never COPY. Excluding large or irrelevant directories like node_modules speeds up builds and reduces image bloat.
It's a good default for most projects — accidentally COPYing a .env file or private key into an image is a common way secrets end up baked into a shared image layer.
The pattern syntax is similar, but .dockerignore only affects what's sent to the Docker build context and what COPY/ADD can access — it has no effect on Git tracking.
Yes — check any combination of JavaScript, Python, Git, and Secrets, and the tool concatenates their rules into one output.