From c52ab1f5304f699c978154c038c034af33e74d84 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Tue, 17 Mar 2020 18:03:27 +0100 Subject: [PATCH] Retry 5 times to acquire files. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1c91254..42c3b17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,8 @@ FROM marshall AS php-core ARG PHP_PACKAGES COPY php-core/install-report.sh /usr/bin/install-report SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN apt-get -qq update && \ +RUN echo "APT::Acquire::Retries \"5\";" > /etc/apt/apt.conf.d/80-retries && \ + apt-get -qq update && \ apt-get -yqq install --no-install-recommends \ python3-software-properties \ software-properties-common \