diff --git a/Dockerfile b/Dockerfile index 7286c5cf36e9dac0be92d1d647eaf038cd8ec518..f670c8277aa43f9ab57bebd5a0495442b5aa3fa2 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 \