Resolve environment replacement for arg

This commit is contained in:
Priya Wadhwa
2018-05-21 14:51:00 -07:00
parent e673e36576
commit d6bb88f924
2 changed files with 18 additions and 2 deletions
@@ -6,7 +6,9 @@ COPY $file /foo
ARG file2=context/bar/bat
COPY $file2 /bat
# Check that overriding a default value works
ARG file3=context/bar/baz
ENV baz baz
ENV src file3
ARG ${src}=context/bar/${baz}
COPY $file3 /baz
# Check that setting an ENV will override the ARG
ENV file context/bar/bam/bat