Skip to content

Commit 8da2913

Browse files
committed
Add .hadolint.yaml configuration and update Dockerfile linting to ignore DL3008
1 parent 4e4a89e commit 8da2913

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
password: ${{ secrets.DOCKERHUB_TOKEN }}
3737

3838
- name: Lint Dockerfile
39-
run: docker run --rm -i hadolint/hadolint < ./Mwh.Sample.Web/Dockerfile
39+
run: docker run --rm -i hadolint/hadolint --ignore DL3008 < ./Mwh.Sample.Web/Dockerfile
4040

4141
- name: Cache Docker layers
4242
id: docker-cache

.hadolint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignored:
2+
- DL3008 # Pin versions in apt get install - we prefer latest for security updates

0 commit comments

Comments
 (0)