Dockerignore Generator

Check the stacks and file types you use, then copy or download the generated .dockerignore instantly.

Select Your Stack

|

Languages & Runtimes

Version Control & Editors

Common Exclusions

.dockerignore preview

Copied!

Summary

Check the stacks and file types you use, then copy or download the generated .dockerignore instantly.

How it works

  1. Check the languages and frameworks your project uses on the left.
  2. Check any extra categories that apply: version control, editors, Docker files, secrets, build artifacts, OS files.
  3. The .dockerignore preview on the right updates instantly as you toggle checkboxes.
  4. Review the generated patterns, grouped by category with comment headers.
  5. Click "Copy" to copy the text or "Download" to save it as a file.
  6. Save the file as ".dockerignore" next to your Dockerfile.

Use cases

  • Shrink the Docker build context so image builds finish faster.
  • Keep node_modules, vendor, or venv directories out of the build context entirely.
  • Prevent .env files, private keys, and other secrets from ending up in an image layer.
  • Exclude local editor settings and OS clutter (.vscode, .idea, .DS_Store) from containerized builds.
  • Bootstrap a .dockerignore for a new project in seconds instead of copying one from an old repo.
  • Standardize which files are ignored across services in a multi-container project.

Frequently Asked Questions

Last updated: 2026-07-23 · Reviewed by Nham Vu