Skip to content

DOCKERFILE

Linters

Linter Additional
hadolint
DOCKERFILE_HADOLINT
GitHub stars sarif

Linted files

  • File names:
    • Containerfile
    • Dockerfile

Configuration in MegaLinter

Variable Description Default value
DOCKERFILE_PRE_COMMANDS List of bash commands to run before the linters None
DOCKERFILE_POST_COMMANDS List of bash commands to run after the linters None
DOCKERFILE_FILTER_REGEX_INCLUDE Custom regex including filter
DOCKERFILE_FILTER_REGEX_EXCLUDE Custom regex excluding filter