Pattern: Use of COPY --from
with missing FROM
alias
Issue: -
Trying to copy from a missing image alias results in an error.
Example of incorrect code:
FROM debian:jesse
RUN stuff
FROM debian:jesse
COPY --from=build some stuff ./
Example of correct code:
FROM debian:jesse as build
RUN stuff
FROM debian:jesse
COPY --from=build some stuff ./