diff --git a/support/docker/Dockerfile b/support/docker/Dockerfile index e7677ac6a9..687eee8110 100644 --- a/support/docker/Dockerfile +++ b/support/docker/Dockerfile @@ -24,7 +24,7 @@ ARG TAR_VERSION="1.35" ENV DEBIAN_FRONTEND=noninteractive # This repository can be a bit slow at times. Don't panic... -COPY apt-sources.list /etc/apt/sources.list +COPY debian.sources /etc/apt/sources.list.d/debian.sources # Install 32bit variant on x86_64 image. RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ @@ -32,15 +32,18 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ fi # The container has no package lists, so need to update first -RUN apt-get -o APT::Retries=3 update -y +RUN apt-get -o APT::Retries=3 -o APT::Acquire::http::Timeout=60 \ + update -y RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ - apt-get -o APT::Retries=3 install -y --no-install-recommends \ + apt-get -o APT::Retries=3 -o APT::Acquire::http::Timeout=60 \ + install -y --no-install-recommends \ g++-multilib \ libc6:i386; \ fi -RUN apt-get -o APT::Retries=3 install -y --no-install-recommends \ +RUN apt-get -o APT::Retries=3 -o APT::Acquire::http::Timeout=60 \ + install -y --no-install-recommends \ bc \ build-essential \ bzr \ diff --git a/support/docker/apt-sources.list b/support/docker/apt-sources.list deleted file mode 100644 index d6fbf85270..0000000000 --- a/support/docker/apt-sources.list +++ /dev/null @@ -1,4 +0,0 @@ -# Latest just before 20250218211000Z: -deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20250218T144938Z/ bookworm main -deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20250218T144938Z/ bookworm-security main -deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20250218T144938Z/ bookworm-updates main diff --git a/support/docker/debian.sources b/support/docker/debian.sources new file mode 100644 index 0000000000..36e1eeb3e7 --- /dev/null +++ b/support/docker/debian.sources @@ -0,0 +1,13 @@ +Types: deb +URIs: http://snapshot.debian.org/archive/debian/20250203T000000Z +Suites: bookworm bookworm-updates +Components: main +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg +Check-Valid-Until: no + +Types: deb +URIs: http://snapshot.debian.org/archive/debian-security/20250203T000000Z +Suites: bookworm-security +Components: main +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg +Check-Valid-Until: no