1
Fork 0

Configure shell to fail if any part of piped command chain fails. Fix Hadolint issue DL4006 (#947)

Co-authored-by: Konstantin Koval <kkb@ukr.net>
This commit is contained in:
Kostiantyn 2024-05-31 11:34:46 +03:00 committed by GitHub
parent d47bca280e
commit 6693920b61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ RUN chmod +x /tmp/install_build_dependencies.sh \
FROM debian:bookworm-slim FROM debian:bookworm-slim
ARG TARGETPLATFORM 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 # Create a user to run Photoview server
RUN useradd -r -U -m photoview \ RUN useradd -r -U -m photoview \
# Required dependencies # Required dependencies