on second thought, use mirror:// urls

This commit is contained in:
Jeffrey Paul 2016-09-02 00:50:10 +02:00
parent 66de970c8b
commit ce5a3a0c92
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,17 @@ ARG STEEMD_REV=master
ARG SECP256K1_REPO=https://github.com/bitcoin/secp256k1
ARG SECP256K1_REV=master
ARG UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt
RUN sed -i \
-e s#http://archive.ubuntu.com/ubuntu/#${UBUNTU_MIRROR}#g \
-e s#http://security.ubuntu.com/ubuntu/#${UBUNTU_MIRROR}#g \
/etc/apt/sources.list ; \
grep -v deb-src /etc/apt/sources.list > \
/etc/apt/sources.list.new && \
mv /etc/apt/sources.list.new /etc/apt/sources.list && \
cat /etc/apt/sources.list
RUN \
apt-get update && \
apt-get install -y \