30 lines
837 B
Docker
30 lines
837 B
Docker
FROM ubuntu:18.04
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt update && \
|
|
apt install --yes python-minimal python-pip python-dev systemd gnupg iproute2
|
|
|
|
RUN cd /lib/systemd/system/sysinit.target.wants/ && \
|
|
ls | grep -v systemd-tmpfiles-setup.service | xargs rm -f && \
|
|
rm -f /lib/systemd/system/sockets.target.wants/*udev* && \
|
|
systemctl mask -- \
|
|
tmp.mount \
|
|
etc-hostname.mount \
|
|
etc-hosts.mount \
|
|
etc-resolv.conf.mount \
|
|
-.mount \
|
|
swap.target \
|
|
getty.target \
|
|
getty-static.service \
|
|
dev-mqueue.mount \
|
|
cgproxy.service \
|
|
systemd-tmpfiles-setup-dev.service \
|
|
systemd-remount-fs.service \
|
|
systemd-ask-password-wall.path \
|
|
systemd-logind.service && \
|
|
systemctl set-default multi-user.target || true
|
|
|
|
RUN sed -ri /etc/systemd/journald.conf \
|
|
-e 's!^#?Storage=.*!Storage=volatile!'
|