From 8dffb1d6d89bef78bc88e7b79563960e16289944 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Wed, 16 Nov 2016 20:18:52 -0500 Subject: [PATCH] base: Use Debian package repository CDN For improved reliability and performance --- Dockerfile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.in b/Dockerfile.in index e35809e..f5e2b8a 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -1,8 +1,8 @@ FROM debian:jessie MAINTAINER Matt McCormick "matt.mccormick@kitware.com" -RUN apt-get update && apt-get install -y curl && \ - sed -i "s/httpredir.debian.org/`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@;@\1@g'`/" /etc/apt/sources.list +RUN REPO=http://cdn-fastly.deb.debian.org && \ + echo "deb $REPO/debian jessie main\ndeb $REPO/debian jessie-updates main\ndeb $REPO/debian-security jessie/updates main" > /etc/apt/sources.list RUN apt-get update && apt-get -y install \ automake \