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

Not allowed using tab between INSTRUCTION and arguments #27

Open
lucasvc opened this issue Dec 22, 2015 · 2 comments
Open

Not allowed using tab between INSTRUCTION and arguments #27

lucasvc opened this issue Dec 22, 2015 · 2 comments

Comments

@lucasvc
Copy link

lucasvc commented Dec 22, 2015

Dockerfile's accept to separate with tab's or n-spaces the INSTRUCTION from the arguments. Best practices doesn't indicate what is the prefered way.
Eclipse shows different errors. In example:

FROM    ubuntu:14.04

Shows the error:

required (...)+ loop did not match anything at input 'FROM'

But when instead of a tab, there are two or more spaces, the error changes to:

mismatched input ' ubuntu:14.04\r\n' expecting RULE_ID

In RUN instruction, the error is:

mismatched input '' expecting RULE_ONE_SPACE_AND_WHATEVER

@lucasvc
Copy link
Author

lucasvc commented Dec 23, 2015

Neither is allowed tab between arguments. In example:

ENV SUPER_VAR   /usr/local/variable

Shows error the error:

no viable alternative at input 'SUPER_VAR'

@l0rd
Copy link
Contributor

l0rd commented Dec 24, 2015

Thank you @lucasvc for your feedback. I'll add tab support in the next days.

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

No branches or pull requests

2 participants