update docker file

pull/863/head
Ruslan Savchuk 2025-03-30 22:40:57 +02:00
parent 7f7c3d80f5
commit df2395ff1b
1 changed files with 3 additions and 6 deletions

View File

@ -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"]