https://github.com/tyler36/hadolint-demo
Demonstrate Hadolint Github Action
https://github.com/tyler36/hadolint-demo
demo docker dockerfile github-workflow hadolint linting
Last synced: 3 months ago
JSON representation
Demonstrate Hadolint Github Action
- Host: GitHub
- URL: https://github.com/tyler36/hadolint-demo
- Owner: tyler36
- Created: 2025-11-20T04:55:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2026-02-17T00:10:16.000Z (4 months ago)
- Last Synced: 2026-02-17T06:41:54.892Z (4 months ago)
- Topics: demo, docker, dockerfile, github-workflow, hadolint, linting
- Language: Dockerfile
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/tyler36/hadolint-demo/actions/workflows/dependabot/dependabot-updates) [](https://github.com/tyler36/hadolint-demo/actions/workflows/linting.yml)
# Hadolint
- [Overview](#overview)
- [Installation](#installation)
- [Usage](#usage)
- [Docker](#docker)
- [Configuration](#configuration)
- [Ignoring Rules](#ignoring-rules)
## Overview
Hadolint is a smarter Dockerfile linter that helps you build [best practice](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices) Docker images.
[Homepage](https://github.com/hadolint/hadolint)
## Installation
- Install [Hadolint](https://github.com/hadolint/hadolint)
```bash
brew install hadolint
```
## Usage
- CLI
```shell
hadolint Dockerfile
```
### Docker
```shell
docker run --rm -i ghcr.io/hadolint/hadolint < Dockerfile
```
## Configuration
List of [rules](https://github.com/hadolint/hadolint/tree/master?tab=readme-ov-file#rules)
### Ignoring Rules
```dockerfile
# hadolint ignore=DL3003,DL3006,SC1035
FROM ubuntu
RUN cd /tmp && echo "foo"
```