Skip to content

Commit

Permalink
Stop retrying apt packages installation in Docker
Browse files Browse the repository at this point in the history
The old retries were probably set up to workaround network issues in the
old CI process. We don't need them now.

See 500369f

See #721
  • Loading branch information
matiasgarciaisaia committed Mar 12, 2024
1 parent 0498290 commit 62a817b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 62a817b

Please sign in to comment.