Pattern: Use of COPY --from
with it's own FROM
alias
Issue: -
Trying to copy from the same image the instruction is running in results in an error.
Example of incorrect code:
FROM debian:jesse as build
COPY --from=build some stuff ./
Example of correct code:
FROM debian:jesse as build
RUN stuff
FROM debian:jesse
COPY --from=build some stuff ./