Docker

Docker

Made by DeepSource

COPY --from cannot reference its own FROM alias DOK-DL3023

Bug risk
Major

Trying to copy from the same image the instruction is running in results in an error.

Bad Practice

FROM debian:jesse as build
COPY --from=build some stuff ./

Recommended

FROM debian:jesse as build
RUN stuff

FROM debian:jesse
COPY --from=build some stuff ./