A containerised instance of replicatedhq/dockerfilelint
version 1.4.0, which is a Dockerfile linter. You can see it in action within this project's CI pipeline.
Simply run dockerfilelint Dockerfile
in the same directory as your Dockerfile
In our pipeline the linter is used as shown below.
# Lint our Dockerfile
lint_dockerfile:
image: theyorkshiredev/dockerfile-linter:latest
stage: test
script:
- dockerfilelint Dockerfile
Please Note: The development of this project is done within a GitLab repository and uses the integrated GitLab CI. If you wish to contribute in anyway feel free to send pull requests and submit issues on GitLab. This GitHub repository is a mirror of the master branch within GitLab and is intended for users unfamiliar with GitLab.