Fix arg handling for multi-stage images in COPY instructions. (#621)

This commit is contained in:
dlorenc
2019-03-22 12:24:43 -05:00
committed by GitHub
parent 1bf4421047
commit c8fabdf6e4
4 changed files with 60 additions and 13 deletions
@@ -0,0 +1,12 @@
ARG FILE_NAME=myFile
FROM busybox:latest AS builder
ARG FILE_NAME
RUN echo $FILE_NAME && touch /$FILE_NAME.txt && stat /$FILE_NAME.txt;
FROM busybox:latest
ARG FILE_NAME
RUN echo $FILE_NAME && touch /$FILE_NAME.txt && stat /$FILE_NAME.txt;
COPY --from=builder /$FILE_NAME.txt /