From ef1e7b9209cb9f7fbff4f6ede620cc4ce495a0fb Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 5 Oct 2023 22:50:46 +0200 Subject: [PATCH] Make curl fail on server errors Make sure the build fails by asking curl to fail if there are server errors (such as 404). --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ecace1b..68b5b62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN apk add --no-cache --virtual .build-deps \ # Install CLI ARG CLI_VERSION -RUN curl -Lso /usr/bin/ha https://github.com/home-assistant/cli/releases/download/${CLI_VERSION}/ha_${BUILD_ARCH} \ +RUN curl -Lfso /usr/bin/ha https://github.com/home-assistant/cli/releases/download/${CLI_VERSION}/ha_${BUILD_ARCH} \ && chmod a+x /usr/bin/ha COPY rootfs /