Skip to content

Commit

Permalink
Disable Hadolint rules
Browse files Browse the repository at this point in the history
Skip Hadolint rule DL3018 (DL3018 warning: Pin versions in apk add)
because Alpine does not keep older package versions which will cause
builds to break when packages are updated.

Skip Hadolint rule DL3003 (Use WORKDIR to switch to a directory) as
breaking up the main 'RUN apk add' statement would create more layers in
the build.
  • Loading branch information
sbreker committed Apr 29, 2024
1 parent 58fc9c1 commit 0522748
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
with:
dockerfile: 1.1.21.2/Dockerfile
failure-threshold: warning
<<<<<<< HEAD
=======
ignore: DL3018,DL3003
>>>>>>> a763734 (Disable Hadolint rules)

checkov:
name: Run Checkov for Dockerfile Security Analysis
Expand Down

0 comments on commit 0522748

Please sign in to comment.