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 on bad COPY last argument #154

Closed
lorenzo opened this Issue Jan 17, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@lorenzo
Copy link
Member

lorenzo commented Jan 17, 2018

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

hadolint should warn that last argument to COPY when using more than 2 arguments should end in a /

Actual behavior

No warning, but docker build fails

Step 1/1 : COPY ./stack.yaml ./package.yaml .
When using COPY with more than one source file, the destination must be a directory and end with a /

Steps to reproduce the behavior

COPY a_file b_file .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment