From 4268518f68b5e294b63a1bbee475423996f70281 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 27 Sep 2023 22:02:19 +0200 Subject: [PATCH] overwrite DL3018 Signed-off-by: Simon L --- .github/workflows/docker-lint.yml | 3 +-- Dockerfile | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-lint.yml b/.github/workflows/docker-lint.yml index 1d6a229..422899a 100644 --- a/.github/workflows/docker-lint.yml +++ b/.github/workflows/docker-lint.yml @@ -29,9 +29,8 @@ jobs: DOCKERFILES="$(find ./ -name Dockerfile)" mapfile -t DOCKERFILES <<< "$DOCKERFILES" for file in "${DOCKERFILES[@]}"; do - # DL3018 warning: Pin versions in apk add. Instead of `apk add ` use `apk add =` # DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check - hadolint "$file" --ignore DL3018 --ignore DL4006 | tee -a ./hadolint.log + hadolint "$file" --ignore DL4006 | tee -a ./hadolint.log done if grep -q "DL[0-9]\+\|SC[0-9]\+" ./hadolint.log; then exit 1 diff --git a/Dockerfile b/Dockerfile index 1a5e918..b359c22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM alpine:3.18.3 +# hadolint ignore=DL3018 RUN set -ex; \ apk add --no-cache fail2ban tzdata util-linux-misc bash