From eaea38ff0a576475ebc9591b0446ddb2b7eca699 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 20 Oct 2026 08:45:26 +0000 Subject: [PATCH] The image build rides out a brief 503 from Ubuntu's snapshot server (closes #132) Both apt-get calls in the Dockerfile now pass -o Acquire::Retries=5. apt already retries a download that fails with 503 three times, waiting 1, 2 and 4 seconds, which a short outage of the snapshot service outlasted; five retries wait about half a minute in all. Model: opus-5-5 --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0cb913c..fc2c64c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -140,10 +140,14 @@ RUN mkdir /etc/sysusers.d \ # apt also fetches the live archive's InRelease files, which change daily # and which the install does not use. The snapshot service is HTTPS only # and this image has no CA certificates yet, so this step uses the Go -# image's. +# image's. The snapshot service answers 503 at times; apt retries a +# failed download, waiting twice as long before each retry, and this +# step gives it five retries, about half a minute in all, where its +# default of three gives up after seven seconds. RUN --mount=type=bind,from=builder,source=/etc/ssl/certs/ca-certificates.crt,target=/tmp/go-image-ca.crt \ apt-get update --snapshot 20261001T000000Z \ -o Acquire::https::CaInfo=/tmp/go-image-ca.crt \ + -o Acquire::Retries=5 \ && printf '%s\n' \ '45f95ce276cdba3e41870516a130e03c58b8b7a79e9546b0efe9e526d255740c snapshot.ubuntu.com_ubuntu_20261001T000000Z_dists_resolute_InRelease' \ '802e675dd9de4c7f3916434a95e7c1d8eec0e82886622d7805ab19a2c6fe0365 snapshot.ubuntu.com_ubuntu_20261001T000000Z_dists_resolute-updates_InRelease' \ @@ -153,6 +157,7 @@ RUN --mount=type=bind,from=builder,source=/etc/ssl/certs/ca-certificates.crt,tar && DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \ --snapshot 20261001T000000Z \ -o Acquire::https::CaInfo=/tmp/go-image-ca.crt \ + -o Acquire::Retries=5 \ ca-certificates nix-bin runit \ && rm -rf /var/lib/apt/lists/* -- 2.54.0