Documentation navigation
Anybuild documentation

Excluding Files

Control which project files individual copy steps place into build artifacts.

Provider defaults

Built-in providers already avoid common development state. Node.js excludes node_modules and .git; Python excludes .venv, __pycache__, and .git. Other providers apply their own source-copy rules.

Ignore patterns on copy steps

The copy builtin accepts an ignore list. Patterns apply to that copy step rather than to the whole plan.

Anybuild
copy(    ".",    ".",    ignore = [".git", "node_modules", "*.log", "coverage"],)

Local builds match patterns against entry names recursively. Docker builds translate the list into copy exclusions. Prefer simple portable patterns when both backends must behave identically.

No global Anybuild ignore file

Anybuild does not currently read an .anybuildignore file. To change a provider's built-in source selection, edit the generated definition and compose lower-level provider helpers or replace the relevant copy step.

Internal state is excluded

Anybuild excludes its own .anybuild state and definition from project-source copies. The Docker build context also excludes legacy .shipit and Shipit names.