github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/ci/test/testinstall/Dockerfile.ubuntu-hirsute (about)

     1  FROM ubuntu:21.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  
    13  RUN cd /lib/systemd/system/sysinit.target.wants/ \
    14      && ls | grep -v systemd-tmpfiles-setup | xargs rm -f $1
    15  
    16  RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
    17      /etc/systemd/system/*.wants/* \
    18      /lib/systemd/system/local-fs.target.wants/* \
    19      /lib/systemd/system/sockets.target.wants/*udev* \
    20      /lib/systemd/system/sockets.target.wants/*initctl* \
    21      /lib/systemd/system/basic.target.wants/* \
    22      /lib/systemd/system/anaconda.target.wants/* \
    23      /lib/systemd/system/plymouth* \
    24      /lib/systemd/system/systemd-update-utmp*
    25  
    26  # https://github.com/moby/moby/issues/1297
    27  RUN echo resolvconf resolvconf/linkify-resolvconf boolean false | debconf-set-selections
    28  
    29  RUN apt update \
    30      && apt install -y \
    31      sudo \
    32      curl
    33  
    34  VOLUME ["/sys/fs/cgroup"]
    35  
    36  CMD ["/lib/systemd/systemd"]