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:
parent
d47bca280e
commit
6693920b61
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue