heartwood every commit a ring

Use Linode mirror for apt to avoid archive.ubuntu.com outages

2b3b38cd by Isaac Bythewood · 25 days ago

Use Linode mirror for apt to avoid archive.ubuntu.com outages

archive.ubuntu.com and security.ubuntu.com have been intermittently slow
or unavailable, causing build-time apt-get install steps to fail with
exit 100 mid-download. Linode runs an officially-documented mirror in
every datacenter, on the same network as the host with free traffic.
Rewrite both endpoints in /etc/apt/sources.list.d/ubuntu.sources before
the install step.
modified Dockerfile
@@ -8,6 +8,13 @@ ENV DEBIAN_FRONTEND=noninteractive \COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uvCOPY --from=oven/bun:latest /usr/local/bin/bun /usr/local/bin/bun# Use Linode's package mirror (same network as the host). Resilient to# archive.ubuntu.com / security.ubuntu.com outages.RUN sed -i \    -e 's|http://archive.ubuntu.com/ubuntu|http://mirrors.linode.com/ubuntu|g' \    -e 's|http://security.ubuntu.com/ubuntu|http://mirrors.linode.com/ubuntu|g' \    /etc/apt/sources.list.d/ubuntu.sourcesRUN apt-get update && \    apt-get install -y --no-install-recommends \    ca-certificates curl unzip gdal-bin \