diff --git a/Dockerfile b/Dockerfile index 7699f33..7bdea7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,12 @@ FROM ubuntu:22.04 -# Update package list and install systemd -# RUN apt-get update && apt-get install -y systemd && rm -rf /var/lib/apt/lists/* -RUN apt-get update && apt-get install -y systemd kmod systemd-sysv && rm -rf /var/lib/apt/lists/* +RUN apt update \ + && apt install -y wget systemd kmod systemd-sysv \ + && rm -rf /var/lib/apt/lists/* -# Configure systemd (optional: set default target) RUN systemctl set-default multi-user.target -# Remove unnecessary systemd units to speed up boot (optional) RUN find /etc/systemd/system /lib/systemd/system \ -path '*.wants/*' -not -name '*systemd*' -exec rm -f {} \; -# Set systemd as the entrypoint ENTRYPOINT ["/lib/systemd/systemd", "--system"] \ No newline at end of file