Configure options below — the preview updates in real time.
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?).
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).
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/).
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.
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.
Helper options for ensuring .dockerignore works across operating systems.
1