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 dc5cb4e commit a4b4ba6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
dockerfile: 1.1.21.2/Dockerfile
failure-threshold: warning
ignore: DL3018,DL3003

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

0 comments on commit a4b4ba6

Please sign in to comment.