dockerfile_lint icon indicating copy to clipboard operation
dockerfile_lint copied to clipboard

Not compatible with multistaged build

Open mildred opened this issue 7 years ago • 2 comments

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...

mildred avatar Mar 20 '18 17:03 mildred

I think this could be related to issue 123

roadSurfer avatar Mar 19 '19 10:03 roadSurfer

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/"
      }
    ]
  },

kierun avatar Apr 30 '21 09:04 kierun