Dockerfiles are available at https://github.com/factorysh/docker-lint
Add a linters.yml to your project:
$ cat linters.yml
---
flake8:
include:
- "*.py"
# exclude test files
exclude:
- "*tests/*"
shellcheck:
include:
- "*.sh"
yamllint:
include:
- "*.yaml"
- "*.yml"
hadolint:
include:
- "Dockerfile*"
# extra options to pass to hadolint binary
options:
- "--ignore=DL3006"
- "--ignore=DL3008"
Then run:
$ docker run \
--rm -u $(id -u) -w /$(basename $PWD) \
-v $PWD:/$(basename $PWD) \
-v $HOME/.cache:/.cache \
bearstech/lint
GPLv3, © 2019
Content type
Image
Digest
Size
63.8 MB
Last updated
over 4 years ago
docker pull bearstech/lint