You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following Dockerfile can be built just fine but the validator will create warnings because it thinks there is only one argument in the two instructions since there are no spaces in the JSON.
FROM alpine
ADD ["t1.txt","t2.txt"]
COPY ["t1.txt","t2.txt"]
$ dockerfile-utils lint Dockerfile
Line: 2
ADD ["t1.txt","t2.txt"]
^^^^^^^^^^^^^^^^^^^
Error: ADD requires at least two arguments
Line: 3
COPY ["t1.txt","t2.txt"]
^^^^^^^^^^^^^^^^^^^
Error: COPY requires at least two arguments
Cover all the cases that can occur if the JSON format is used but
there are only two actual arguments written for ADD and COPY
instructions.
Signed-off-by: Remy Suen <[email protected]>
The following Dockerfile can be built just fine but the validator will create warnings because it thinks there is only one argument in the two instructions since there are no spaces in the JSON.
The text was updated successfully, but these errors were encountered: