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 compatible with multistaged build #105

Open
mildred opened this issue Mar 20, 2018 · 2 comments
Open

Not compatible with multistaged build #105

mildred opened this issue Mar 20, 2018 · 2 comments

Comments

@mildred
Copy link

mildred commented Mar 20, 2018

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
Copy link

I think this could be related to issue 123

@kierun
Copy link

kierun commented Apr 30, 2021

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

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

3 participants