Class DockerCopyFrom

java.lang.Object
org.openrewrite.docker.trait.DockerCopyFrom
All Implemented Interfaces:
DockerImageReference<Docker.Instruction>, org.openrewrite.trait.Trait<Docker.Instruction>

public class DockerCopyFrom extends Object implements DockerImageReference<Docker.Instruction>
A trait representing the image reference carried by the --from flag of a COPY or ADD instruction. Provides the same semantic access to image name, tag, and digest as DockerFrom, while distinguishing an external image reference (e.g. COPY --from=nginx:latest) from a reference to an earlier build stage (e.g. COPY --from=builder or COPY --from=0). When the value refers to a build stage the image accessors return null; use isStageReference() to disambiguate.