From 46a278c067c2615b2a99897e905edf277ce8e520 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Fri, 18 Nov 2022 15:27:38 -0300 Subject: [PATCH] Add curl and exit on error run.sh --- Dockerfile | 2 +- docker/run.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1053d593..608e22bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ COPY ./docker/run.sh /run.sh # Final image FROM base -RUN apk add --no-cache bash tini ffmpeg +RUN apk add --no-cache bash tini curl ffmpeg COPY --from=rootfs / / diff --git a/docker/run.sh b/docker/run.sh index 93cbf082..f9211d17 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -3,6 +3,8 @@ # Runs go2rtc # ============================================================================== +set -euo pipefail + echo 'Starting go2rtc...' >&2 readonly config_path="/config"