Skip to content

Commit 5385a91

Browse files
committed
Circumvent intermittent apt-get failures
1 parent 5d2c709 commit 5385a91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM continuumio/anaconda3:latest
22

3-
RUN apt-get update && apt-get install -y build-essential && \
3+
# Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
4+
# as described by Lionel Chan at http://stackoverflow.com/a/37426929/5881346
5+
RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list && \
6+
apt-get update && apt-get install -y build-essential && \
47
cd /usr/local/src && \
58
# https://github.com/tensorflow/tensorflow/issues/64#issuecomment-155270240
69
# Why does this work, when `pip install tensorflow` fails? It is a mystery

0 commit comments

Comments
 (0)