Skip to content

Files

Latest commit

 

History

History
29 lines (19 loc) · 597 Bytes

DL3023.md

File metadata and controls

29 lines (19 loc) · 597 Bytes

Pattern: Use of COPY --from with it's own FROM alias

Issue: -

Description

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 ./

Further Reading