Skip to content

Not allowed using tab between INSTRUCTION and arguments #27

@lucasvc

Description

@lucasvc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions