Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD incorrectly flags JSON's closing bracket as an invalid argument #30

Closed
rcjsuen opened this issue Mar 31, 2018 · 0 comments
Closed
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Mar 31, 2018

Docker will happily build the following Dockerfile but the validator incorrectly flags the closing bracket as an error. Caused by implementing #17.

FROM alpine
ADD [ "t1.txt", "t2.txt", "./" ]
$ docker build .
Sending build context to Docker daemon  1.696MB
Step 1/2 : FROM alpine
 ---> 3fd9065eaf02
Step 2/2 : ADD [ "t1.txt", "t2.txt", "./" ]
 ---> bbf5b39e1dc5
Successfully built bbf5b39e1dc5
$ dockerfile-utils lint Dockerfile
Line: 2
ADD [ "t1.txt", "t2.txt", "./" ]
                               ^
Error: When using ADD with more than one source file, the destination must be a directory and end with a / or a \
@rcjsuen rcjsuen added the bug label Mar 31, 2018
@rcjsuen rcjsuen self-assigned this Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant