From 89e6b0c025a86cd8f1fe727500be034c10d8f05c Mon Sep 17 00:00:00 2001 From: TapTap Date: Sun, 22 Nov 2026 17:53:20 +0000 Subject: [PATCH] build: retry the yt-dlp download in the image build The release download from github.com occasionally resets the connection on the runner, which failed the image job twice in a row while test and chart passed. Retry the fetch and bound the connect time. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bebd133..6cb0dff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,9 @@ RUN apt-get update \ python3 \ python3-pip \ && rm -rf /var/lib/apt/lists/* \ - && curl -fsSL "https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp_linux" \ + && curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors \ + --connect-timeout 20 \ + "https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp_linux" \ -o /usr/local/bin/yt-dlp \ && chmod 0755 /usr/local/bin/yt-dlp \ && pip3 install --no-cache-dir "streamrip==${STREAMRIP_VERSION}" \