From 6a3202e2b1058251ad66a70a93e6870baeb24b1e Mon Sep 17 00:00:00 2001 From: NI Date: Wed, 23 Oct 2019 14:39:46 +0800 Subject: [PATCH] Configure the `apt-get` command to retry failed downloads during Docker building process --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 6edd225..7400607 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN set -ex && \ echo 'apt-get update && apt-get install autoconf automake libtool build-essential git npm golang-go -y' > /install.sh && chmod +x /install.sh && \ ([ -z "$HTTP_PROXY" ] || (echo "Acquire::http::Proxy \"$HTTP_PROXY\";" >> /etc/apt/apt.conf)) && \ ([ -z "$HTTPS_PROXY" ] || (echo "Acquire::https::Proxy \"$HTTPS_PROXY\";" >> /etc/apt/apt.conf)) && \ + (echo "Acquire::Retries \"8\";" >> /etc/apt/apt.conf) && \ try.sh install.sh && rm /install.sh # Build the base environment for application libraries