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

Warn if COPY has more than two arguments and the last one is not a directory #14

Closed
rcjsuen opened this issue Jan 20, 2018 · 0 comments
Closed
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Jan 20, 2018

FROM alpine
COPY Dockerfile Dockerfile2 /root
$ docker build .
Sending build context to Docker daemon  1.878MB
Step 1/2 : FROM alpine
 ---> 3fd9065eaf02
Step 2/2 : COPY Dockerfile Dockerfile2 /root
When using COPY with more than one source file, the destination must be a directory and end with a /

If a COPY has more than two arguments, the last argument must be a directory. The Docker builder will check for this by validating that the last argument ends with the OS's path segment separator (either / or \).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant