mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user