From 8b2bd421fc1521b4a9dcbdfa9777d5c04adf27c3 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Fri, 25 Oct 2024 09:58:12 +0200 Subject: [PATCH] chore: retry maven downloads --- eclipse-temurin-17/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse-temurin-17/Dockerfile b/eclipse-temurin-17/Dockerfile index 7c4ab75e..4d137611 100644 --- a/eclipse-temurin-17/Dockerfile +++ b/eclipse-temurin-17/Dockerfile @@ -11,7 +11,7 @@ ENV MAVEN_CONFIG="$USER_HOME_DIR/.m2" RUN apt-get update \ && apt-get install -y ca-certificates curl git gnupg dirmngr --no-install-recommends \ && rm -rf /var/lib/apt/lists/* -RUN set -eux; curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ +RUN set -eux; curl -fsSLO --retry 3 --retry-connrefused --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ && echo "${SHA} *apache-maven-${MAVEN_VERSION}-bin.tar.gz" | sha512sum -c - \ && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc \ && export GNUPGHOME="$(mktemp -d)"; \