dockerfile_lint
dockerfile_lint copied to clipboard
Not compatible with multistaged build
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...
I think this could be related to issue 123
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/"
}
]
},