From fa5c7874934afd36e9422521f23b17eaa3b535de Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 30 Jul 2021 22:28:15 +0200 Subject: [PATCH 1/2] hadolint: bump to tag v2.6.0-alpine --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a1bc046..132ac7f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,7 +10,7 @@ platform: steps: - name: hadolint pull: always - image: hadolint/hadolint:v1.23.0-8-gb01c5a9-alpine + image: hadolint/hadolint:v2.6.0-alpine commands: - hadolint --version - hadolint Dockerfile -- 2.47.1 From 3f71770052342d399d57b9cc3db981a700389853 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 30 Jul 2021 22:45:09 +0200 Subject: [PATCH 2/2] hadolint: ad DL3059 --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4134c31..b824591 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,14 +16,15 @@ ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_ext WORKDIR /tmp/ RUN microdnf --refresh upgrade -y && microdnf install -y bsdtar git findutils \ - --nodocs --setopt install_weak_deps=0 + --nodocs --setopt install_weak_deps=0 \ + && microdnf clean all -y +# ignore DL3059 RUN bsdtar xfv /tmp/hugo.tar.gz && rm -fv /tmp/hugo.tar.gz README.md LICENSE \ && chmod +x /tmp/hugo \ && mkdir -pv /usr/local/bin \ && mv -v /tmp/hugo /usr/local/bin/ \ - && rm -rfv /tmp/* -RUN microdnf clean all -y -RUN rm -rf /usr/share/zoneinfo/* ; rm -rf /usr/include/* ; \ + && rm -rfv /tmp/* \ + && rm -rf /usr/share/zoneinfo/* ; rm -rf /usr/include/* ; \ find /. -name "*~" -type f -delete; \ find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete WORKDIR / -- 2.47.1