Retry apt commands on connection timeout when building docker.

PiperOrigin-RevId: 302937064
Change-Id: I07f6e70036a0af49cdda6cb36d96b715ecdd4e84
This commit is contained in:
Christian Sigg 2020-03-25 11:51:05 -07:00 committed by TensorFlower Gardener
parent 3754f081a4
commit b4767daaaa

View File

@ -16,6 +16,9 @@
set -e
# Retry on connection timeout.
bash -c "echo 'APT::Acquire::Retries \"3\";' > /etc/apt/apt.conf.d/80-retries"
# Install bootstrap dependencies from ubuntu deb repository.
apt-get update
apt-get install -y --no-install-recommends \