mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

This adds support for Dockerfile commands to have options - e.g: COPY --user=john foo /tmp/ COPY --ignore-mtime foo /tmp/ Supports both booleans and strings. Signed-off-by: Doug Davis <dug@us.ibm.com>
10 lines
239 B
Docker
10 lines
239 B
Docker
FROM scratch
|
|
COPY foo /tmp/
|
|
COPY --user=me foo /tmp/
|
|
COPY --doit=true foo /tmp/
|
|
COPY --user=me --doit=true foo /tmp/
|
|
COPY --doit=true -- foo /tmp/
|
|
COPY -- foo /tmp/
|
|
CMD --doit [ "a", "b" ]
|
|
CMD --doit=true -- [ "a", "b" ]
|
|
CMD --doit -- [ ]
|