REA multi-stage Dockerfile notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

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

  1. Authorize the Dockerfile (+ artifacts you hold).
  2. Quote selected stages / base images / final targets you actually see (redact secrets).
  3. Ignore cousin → rea-dockerignore; Compose cousin → rea-compose-yml.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. 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

ArtifactHonest posture
multi-stage DockerfileStage/base identity facts
ignore cousinrea-dockerignore
Compose cousinrea-compose-yml
Evidence binderrea-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).

Sources