From 6693920b61b1afda29786566b418ba7df9ffd628 Mon Sep 17 00:00:00 2001 From: Kostiantyn <32730812+kkovaletp@users.noreply.github.com> Date: Fri, 31 May 2024 11:34:46 +0300 Subject: [PATCH] Configure shell to fail if any part of piped command chain fails. Fix Hadolint issue DL4006 (#947) Co-authored-by: Konstantin Koval --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4929d5c..49f0eb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,6 +59,8 @@ RUN chmod +x /tmp/install_build_dependencies.sh \ FROM debian:bookworm-slim ARG TARGETPLATFORM +# See for details: https://github.com/hadolint/hadolint/wiki/DL4006 +SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Create a user to run Photoview server RUN useradd -r -U -m photoview \ # Required dependencies