Skip to content

Difference between online and command line versions #1017

@nerd66

Description

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

Expected behavior

The hadolint command and the online version produce the same output for the same Dockerfile.

Actual behavior

The provided Dockerfile produces no output with the hadolint command but the online version gives the following output for the second line: "Pin versions in pip. Instead of pip install <package> use pip install <package>==<version>" This shouldn't happen when using only a requirements.txt file.

Steps to reproduce the behavior

Version: Haskell Dockerfile Linter 2.12.0
Save the below Dockerfile as Dockerfile and run hadolint Dockerfile. This produces no output.
Copy the Dockerfile content to the https://hadolint.github.io/hadolint/ and click on "Lint". This produces the above output about pinning pip package versions.

Minimal Dockerfile:

FROM python:3.10-slim
RUN pip install --no-cache-dir -Ur requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions