Skip to content

Commit

Permalink
Add hadolint
Browse files Browse the repository at this point in the history
  • Loading branch information
pichuang committed May 5, 2024
1 parent ae6a243 commit ef6fe14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
failure-threshold: error
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LABEL org.opencontainers.image.title = "Debug Container" \
org.opencontainers.image.documentation = "https://github.com/pichuang/debug-container"

# Install packages
# hadolint ignore=DL3033
RUN yum -y install epel-release && \
rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9 && \
yum -y update && \
Expand Down Expand Up @@ -51,6 +52,7 @@ RUN echo "cat /etc/motd" >> ~/.bashrc

EXPOSE 5566

# hadolint ignore=DL3002
USER root
WORKDIR /root
ENV HOSTNAME debug-container
Expand Down

0 comments on commit ef6fe14

Please sign in to comment.