From 8ec8564691dc1ebf757c93fe51f6b64a8fcb49af Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 28 Mar 2016 13:47:28 -0700 Subject: [PATCH] Allow specifying apt mirror in dockerfile Signed-off-by: Tonis Tiigi --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 23a4c5c656..0a9cc1204e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,10 @@ RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 608 || apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 6084F3CF814B57C1CF12EFD515CF4D18AF4F7421 RUN echo deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main > /etc/apt/sources.list.d/llvm.list +# allow replacing httpredir mirror +ARG APT_MIRROR=httpredir.debian.org +RUN sed -i s/httpredir.debian.org/$APT_MIRROR/g /etc/apt/sources.list + # Packaged dependencies RUN apt-get update && apt-get install -y \ apparmor \