From 77edc4b33e151418998dca63e74c6e2296da1379 Mon Sep 17 00:00:00 2001 From: Nick007 Date: Mon, 23 Mar 2026 21:06:24 +0800 Subject: [PATCH] fix: add curl retry for WeChat/QQ download to handle transient network failures --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b213e1..14d3e2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ RUN case "$TARGETPLATFORM" in \ exit 1 ;; \ esac && \ echo "📦 Downloading WeChat for $WECHAT_ARCH architecture..." && \ - curl -fsSL -o wechat.deb "$WECHAT_URL" && \ + curl -fsSL --retry 3 --retry-delay 10 --retry-all-errors -o wechat.deb "$WECHAT_URL" && \ echo "🔧 Installing WeChat..." && \ (dpkg -i wechat.deb || (apt-get update && apt-get install -f -y && dpkg -i wechat.deb)) && \ rm -f wechat.deb && \ @@ -72,7 +72,7 @@ RUN if [ "$INSTALL_QQ" = "true" ]; then \ exit 1 ;; \ esac && \ echo "📦 Downloading QQ for $QQ_ARCH architecture..." && \ - curl -fsSL -o qq.deb "$QQ_URL" && \ + curl -fsSL --retry 3 --retry-delay 10 --retry-all-errors -o qq.deb "$QQ_URL" && \ echo "🔧 Installing QQ..." && \ (dpkg -i qq.deb || (apt-get update && apt-get install -f -y && dpkg -i qq.deb)) && \ rm -f qq.deb && \