Docker

Docker

Made by DeepSource

COPY --from should reference a previously defined FROM alias DOK-DL3022

Bug risk
Major

Trying to copy from a missing image alias results in an error.

Bad Practice

FROM debian:jesse as build
RUN stuff

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

Recommended

FROM debian:jesse as build
RUN stuff

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