| Property | Value |
|---|---|
| Severity | Warning |
| Category | Best Practice |
| Default | Enabled |
Description
Detects stages that are defined but never used. A stage is considered “unreachable” if it:- Is not the final stage in the Dockerfile
- Is not referenced by
COPY --from=<stage> - Is not the target of a
--targetbuild argument
- Leftover from refactoring
- Copy-paste artifacts
- Forgotten experimental code