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 0101ba6 commit 3d1c267
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 3d1c267

Please sign in to comment.