From 62a817b00996909de4dfa937b918ab1d9c289681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Garc=C3=ADa=20Isa=C3=ADa?= Date: Tue, 12 Mar 2024 02:03:41 -0300 Subject: [PATCH] Stop retrying apt packages installation in Docker The old retries were probably set up to workaround network issues in the old CI process. We don't need them now. See 500369fdda992fd4fb17bb5d58c1fc04c2cea405 See #721 --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12e35dbe..89bc87ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,13 +29,10 @@ RUN echo 'deb http://archive.debian.org/debian stretch main\n\ deb http://archive.debian.org/debian-security stretch/updates main' > /etc/apt/sources.list # Install package dependencies and add precompiled binary -RUN for i in {1..5}; do \ - (apt-get update \ - && apt-get -y install postgresql-client gdal-bin python-gdal libgdal-java \ - && break) \ - || (sleep 5; false); done \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* +RUN apt-get update && \ + apt-get -y install postgresql-client gdal-bin python-gdal libgdal-java && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* # Add scripts COPY --from=build /app/scripts/ /app/scripts/