COPYoperation will use the directory where the calling Earthfile exists, as the source.
COMMAND. For example:
MY_COPYdoes not contain a
FROMso the build environment it operates in is the build environment of the caller.
+MY_COPYhas access to the file
+MY_COPY, its effects are seen in the environment of the caller - so the resulting
./baris available to the caller.
ARGscope, which is distinct from the caller. Any
ARGthat needs to be passed from the caller needs to be passed explicitly via
DO +COMMAND --<build-arg-key>=<build-arg-value>, as in the following example.
basetarget of the same Earthfile where the command is defined in (this may be distinct from the
basetarget of the caller).