From 5e3fcfe8e0cdf294c5ad6df0775a5c6e4e488b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Hedenstr=C3=B6m?= <erik@codemate.se> Date: Mon, 1 Sep 2014 22:37:23 +0200 Subject: [PATCH] Added apt-fast --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7286c5c..f670c82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,19 @@ ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_PRIORITY critical ENV DEBCONF_NOWARNINGS yes +# Install apt-fast with patched ulimit +RUN \ + ulimit -n 10000 && \ + apt-get update && \ + apt-get -y install aria2 && \ + curl -s https://raw.githubusercontent.com/ilikenwf/apt-fast/master/apt-fast -o /usr/local/bin/apt-fast && \ + sed -i '/^#!\/bin\/bash/aulimit -n 10000' /usr/local/bin/apt-fast && \ + chmod 755 /usr/local/bin/apt-fast + # Upgrade packages RUN \ - apt-get -y update && \ - apt-get -y upgrade + apt-fast update && \ + apt-fast -y upgrade # Set Timezone RUN \ -- GitLab