Control the mirrors list

This commit is contained in:
Cyryl Płotnicki 2019-03-05 11:16:03 +00:00
parent 70fd9297b8
commit a16bf128e6

View file

@ -6,6 +6,15 @@ ENV LANGUAGE en_GB.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries
RUN echo '\
deb mirror://mirrors.ubuntu.com/mirrors.txt cosmic main restricted \n\
deb mirror://mirrors.ubuntu.com/mirrors.txt cosmic-updates main restricted \n\
deb mirror://mirrors.ubuntu.com/mirrors.txt cosmic-security main restricted \n\
deb mirror://mirrors.ubuntu.com/mirrors.txt cosmic universe \n\
deb mirror://mirrors.ubuntu.com/mirrors.txt cosmic-updates universe\n\
deb mirror://mirrors.ubuntu.com/mirrors.txt cosmic-security universe\n\
' > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y --fix-missing sudo apt-utils aptitude dirmngr locales nullmailer
RUN apt-get -y --fix-missing upgrade