REA multi-stage Dockerfile notes (unofficial)
Multi-stage Dockerfile pins image-build stage identity. In REA 6.7.x, treat selected FROM/AS/COPY pins as Evidence beside archive/package routes — complementing rea-dockerignore without inventing APIs.
Mental model
- Authorize the
Dockerfile(+ artifacts you hold). - Quote selected stages / base images / final targets you actually see (redact secrets).
- Ignore cousin → rea-dockerignore; Compose cousin → rea-compose-yml.
- Bind absolute paths honestly → rea-absolute-paths.
- Do not invent a Dockerfile API REA never called.
Minimal path
# authorized Dockerfile (+ artifact you hold)
# quote selected FROM/AS stage pins into case notes (redact secrets)
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_dockerfile_multi .
Compare
| Artifact | Honest posture |
|---|---|
multi-stage Dockerfile | Stage/base identity facts |
| ignore cousin | rea-dockerignore |
| Compose cousin | rea-compose-yml |
| Evidence binder | rea-evidence-explained |
Scope we will not cover
- No inventing
inspect_dockerfile_multi/ automatic docker build. - No credential theft from ARG/ENV secrets.
- No pirate redistribution of paid base images/artifacts.
- No crack framing via Dockerfile pins.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-dockerignore?
rea-dockerignore zooms on ignore files. This page zooms on multi-stage FROM/AS pins as Evidence — it does not overwrite that page.
Is there inspect_dockerfile_multi in 6.7.0?
Not assumed. Quote stages/base images you actually open, then use documented package/archive lanes. Do not invent inspect_dockerfile_multi.
Does REA run docker build or steal secrets from Dockerfiles?
No. Local trees only. Redact secrets/ARG defaults; do not treat REA as a Docker builder.
Dockerfile vs compose.yml?
Label Evidence by the file present. Keep this Dockerfile lane separate from rea-compose-yml.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).