Skip to content

Commit

Permalink
Add a default hadolint config file
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 19, 2023
1 parent 2ab8201 commit 7dc3f10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hadolint/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ COPY Containerfile /
RUN /usr/local/bin/hadolint --ignore DL3008 --ignore DL3033 --ignore DL3059 Containerfile

FROM base as release
COPY --from=base --chmod=777 /usr/local/bin/hadolint /bin/hadolint
COPY --from=base --chmod=777 /usr/local/bin/hadolint /usr/local/bin/hadolint
WORKDIR /shared
COPY hadolint.yaml .hadolint.yaml
CMD ["/bin/hadolint", "-"]
4 changes: 4 additions & 0 deletions hadolint/hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ignored:
- DL3008 # Pin versions in apt-get install.
- DL3033 # Pin versions in yum install.
- DL3059 # Multiple consecutive RUN instructions.

0 comments on commit 7dc3f10

Please sign in to comment.