Configure options below — the preview updates in real time.

Exclusion Patterns

Files, directories, and wildcard patterns to exclude from the Docker build context. Uses Go filepath.Match glob syntax.

Standard glob patterns to omit from the build context (e.g. node_modules, *.log, temp?).

Deep Nested Exclusions (Double-Star)

Patterns using ** to match any number of directories (including zero). Useful for globally ignoring specific file types regardless of depth.

Double-asterisk patterns that match files at any depth (e.g. **/*.test.js, **/*.md).

Inclusion Exceptions (Negation)

Force Docker to include files that were excluded by previous rules. The ! prefix must be included in each pattern. Order matters: the last matching rule determines whether a file is included or excluded.

Patterns to re-include after exclusion. Include the ! prefix (e.g. !README.md, !src/public/).

Special Exclusions

Toggle special files for exclusion from the build context. Note: these files are always sent to the builder for processing, but excluding them prevents ADD/COPY from including them in the image.

Exclude DockerfileExclude the Dockerfile from ADD and COPY instructions. The Dockerfile is always sent to the builder for processing, but this prevents it from being copied into the final image.
Exclude .dockerignoreExclude the .dockerignore file from ADD and COPY instructions. The file is always sent to the builder, but this prevents it from being copied into the final image.

Comments & Annotations

Add explanatory comments to the .dockerignore file. Lines starting with # in column 1 are treated as comments and ignored by Docker.

Organizational comments or notes explaining why certain patterns are excluded.

Cross-Platform Options

Helper options for ensuring .dockerignore works across operating systems.

Generate Case VariantsAutomatically expand patterns into uppercase and lowercase variants for cross-platform safety (e.g. *.md also outputs *.MD). Useful when building on case-insensitive filesystems.