ubuntu/Dockerfile

11 lines
314 B
Docker
Raw Normal View History

2024-09-02 15:47:27 +08:00
FROM ubuntu:22.04
RUN echo 'root:root' | chpasswd
RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d
RUN apt-get update
RUN apt-get install -y systemd systemd-sysv dbus dbus-user-session
RUN printf "systemctl start systemd-logind" >> /etc/profile
RUN apt-get install wget net-tools
ENTRYPOINT ["/sbin/init"]