pub fn apply<E: DockerfileEnvironment>(
args: &DockerfileArgs,
env: &E,
) -> Result<DockerfileGraph, SpecError>Expand description
Parse + content-address a Dockerfile into its typed
DockerfileGraph.
§Errors
SpecError::Interp { phase: "read-dockerfile" }if the environment couldn’t read the file.SpecError::Interp { phase: "parse-line" }for a line this scoped parser can’t classify, or a malformed instruction (e.g.COPYwith no destination).SpecError::Interp { phase: "unresolved-arg-reference" }if aRUN/ENV/CMD/… body references$SOME_ARGand neither the environment nor theARG’s own default resolves it.