From a73da2a9fce55b7efdc19cf11ec28f2b65421c3d Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Sat, 30 Mar 2024 21:51:40 -0400 Subject: [PATCH] fail build on any curl error --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5196016..1c944f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 ## Buildstage ## -FROM ghcr.io/linuxserver/baseimage-alpine:3.18 as buildstage +FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage ARG MOD_VERSION @@ -15,8 +15,9 @@ RUN \ mkdir -p /root-layer/opencl-intel && \ for i in $COMP_RT_URLS; do \ echo "**** downloading ${i%$'\r'} ****" && \ - curl -o /root-layer/opencl-intel/$(basename "${i%$'\r'}") \ - -fL "${i%$'\r'}"; \ + curl -fS --retry 3 --retry-connrefused -o \ + /root-layer/opencl-intel/$(basename "${i%$'\r'}") -L \ + "${i%$'\r'}" || exit 1; \ done # copy local files