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

ARG and ENV instruction that spans multiple lines and only has a comment is not flagged as an error #78

Closed
rcjsuen opened this issue Jun 18, 2020 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Jun 18, 2020

This Dockerfile should produce a linting error.

FROM scratch
ENV \
    # comment
$ docker build .
Sending build context to Docker daemon  46.79MB
Error response from daemon: Dockerfile parse error line 2: ENV requires at least one argument
@rcjsuen rcjsuen added the bug label Jun 18, 2020
@rcjsuen rcjsuen self-assigned this Jun 18, 2020
@rcjsuen rcjsuen changed the title ENV instruction that spans multiple lines and only has a comment is not flagged as an error ARG and ENV instruction that spans multiple lines and only has a comment is not flagged as an error Jun 18, 2020
@rcjsuen rcjsuen added enhancement and removed bug labels Jun 18, 2020
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