Skip to content

Pin versions in pip linting error #366

@jamesstonehill

Description

@jamesstonehill
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

When my Dockerfile looks like this:

RUN pipenv run python setup.py install

I get this:

$ hadolint Dockerfile
Dockerfile:1 DL3013 Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>`

I shouldn't get a linter error in this case as there is no pip install command in that line.

Steps to reproduce the behavior

echo "RUN pipenv run python setup.py install" > Dockerfile
hadolint Dockerfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions