projectatomic / dockerfile_lint

MIT License
86 stars 11 forks source link

Not compatible with multistaged build #105

Open mildred opened 6 years ago

mildred commented 6 years ago

Unfortunately your linter does not seem compatible with multistaged build Dockerfile as the following log can show:

Line 1: -> FROM golang:1.10-alpine AS provider-aws
ERROR: Invalid parameters for command.. 
Reference -> https://docs.docker.com/engine/reference/builder/

It would be nice to still be able to use this linter with multistaged build Dockerfile...

roadSurfer commented 5 years ago

I think this could be related to issue 123

kierun commented 3 years ago

I tried ignoring the FROM with # dockerfile_lint - ignore but got:

  "error": {
    "count": 1,
    "data": [
      {
        "message": "Missing or misplaced FROM",
        "line": 15,
        "level": "error",
        "lineContent": "RUN set -ex && apk add --no-cache make gcc libc-dev",
        "reference_url": "https://docs.docker.com/engine/reference/builder/"
      }
    ]
  },