From f9e30d492b825aaf6df2846aa7fbab1ba06ed5b2 Mon Sep 17 00:00:00 2001 From: Natalie Somersall Date: Fri, 9 Aug 2024 10:37:40 -0600 Subject: [PATCH] this should fix the hadolint checks --- .github/linters/.hadolint.yaml | 2 ++ images/wolfi.Dockerfile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/linters/.hadolint.yaml b/.github/linters/.hadolint.yaml index bfb3d42..abee5e3 100644 --- a/.github/linters/.hadolint.yaml +++ b/.github/linters/.hadolint.yaml @@ -1,4 +1,6 @@ ignored: + - DL3007 # use latest tag + - DL3018 # apk should not pin all package versions - DL3041 # dnf should not pin all package versions - DL3008 # apt should not pin all package versions - DL3003 # don't use workdir, this is readable when workdir isn't created yet diff --git a/images/wolfi.Dockerfile b/images/wolfi.Dockerfile index 84376b8..cfedf99 100644 --- a/images/wolfi.Dockerfile +++ b/images/wolfi.Dockerfile @@ -42,6 +42,9 @@ RUN apk update \ RUN export PATH=$HOME/.local/bin:$PATH +# Shell setup +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + # Make and set the working directory RUN mkdir -p /home/runner \ && chown -R runner:runner /home/runner