mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-22 10:38:44 +02:00
Fix arg handling for multi-stage images in COPY instructions. (#621)
This commit is contained in:
@@ -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 /
|
||||
Reference in New Issue
Block a user