github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/ci/test/testinstall/Dockerfile.ubuntu-focal (about) 1 FROM ubuntu:20.04 2 3 ENV container docker 4 ENV LC_ALL C 5 ENV DEBIAN_FRONTEND noninteractive 6 7 RUN sed -i 's/# deb/deb/g' /etc/apt/sources.list 8 9 RUN apt update \ 10 && apt install -y systemd \ 11 && apt-get clean \ 12 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 13 14 RUN cd /lib/systemd/system/sysinit.target.wants/ \ 15 && ls | grep -v systemd-tmpfiles-setup | xargs rm -f $1 16 17 RUN rm -f /lib/systemd/system/multi-user.target.wants/* \ 18 /etc/systemd/system/*.wants/* \ 19 /lib/systemd/system/local-fs.target.wants/* \ 20 /lib/systemd/system/sockets.target.wants/*udev* \ 21 /lib/systemd/system/sockets.target.wants/*initctl* \ 22 /lib/systemd/system/basic.target.wants/* \ 23 /lib/systemd/system/anaconda.target.wants/* \ 24 /lib/systemd/system/plymouth* \ 25 /lib/systemd/system/systemd-update-utmp* 26 27 # https://github.com/moby/moby/issues/1297 28 RUN echo resolvconf resolvconf/linkify-resolvconf boolean false | debconf-set-selections 29 30 RUN apt update \ 31 && apt install -y \ 32 sudo \ 33 curl 34 35 VOLUME ["/sys/fs/cgroup"] 36 37 CMD ["/lib/systemd/systemd"]