Skip to content

Commit a73da2a

Browse files
committed
fail build on any curl error
1 parent 761283a commit a73da2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
## Buildstage ##
4-
FROM ghcr.io/linuxserver/baseimage-alpine:3.18 as buildstage
4+
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
55

66
ARG MOD_VERSION
77

@@ -15,8 +15,9 @@ RUN \
1515
mkdir -p /root-layer/opencl-intel && \
1616
for i in $COMP_RT_URLS; do \
1717
echo "**** downloading ${i%$'\r'} ****" && \
18-
curl -o /root-layer/opencl-intel/$(basename "${i%$'\r'}") \
19-
-fL "${i%$'\r'}"; \
18+
curl -fS --retry 3 --retry-connrefused -o \
19+
/root-layer/opencl-intel/$(basename "${i%$'\r'}") -L \
20+
"${i%$'\r'}" || exit 1; \
2021
done
2122

2223
# copy local files

0 commit comments

Comments
 (0)