Skip to content

Commit

Permalink
Buff apt against intermittent fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 authored Dec 8, 2023
1 parent 0aa888e commit 863853a
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,15 @@ RUN \
# remove -backports, -updates, -proposed, -security repositories
# looks like we have to grab libxxhash0 from -updates now
RUN \
apt-get update -y \
for n in $(seq 1 5); do apt-get update -y && sleep 5 && break; done \
&& \
apt-get install --no-install-recommends libxxhash0 \
apt-get install --no-install-recommends libxxhash0 software-properties-common \
&& \
apt-get clean \
&& \
rm -rf /var/lib/apt/lists/* \
&& \
apt-get update -y \
&& \
apt-get install -y software-properties-common \
&& \
add-apt-repository -y ppa:ubuntu-toolchain-r/test \
for n in $(seq 1 5); do add-apt-repository -y ppa:ubuntu-toolchain-r/test && sleep 5 && break; done \
&& \
add-apt-repository -y ppa:deadsnakes/ppa \
for n in $(seq 1 5); do add-apt-repository -y ppa:deadsnakes/ppa && sleep 5 && break; done \
&& \
apt-get update -y \
for n in $(seq 1 5); do apt-get update -y && sleep 5 && break; done \
&& \
apt-get install --no-install-recommends --allow-downgrades -y \
build-essential \
Expand Down

0 comments on commit 863853a

Please sign in to comment.