Add Dockerfile
This commit is contained in:
commit
3e9921ea9d
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
|
# Installer systemd
|
||||||
|
RUN apt-get update && apt-get install -y systemd
|
||||||
|
|
||||||
|
# Configurer systemd
|
||||||
|
RUN cd /lib/systemd/system/sysinit.target.wants/ && \
|
||||||
|
ls | grep -v systemd-tmpfiles-setup | xargs rm -f $1
|
||||||
|
|
||||||
|
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
|
||||||
|
/etc/systemd/system/*.wants/* \
|
||||||
|
/lib/systemd/system/local-fs.target.wants/* \
|
||||||
|
/lib/systemd/system/sockets.target.wants/*udev* \
|
||||||
|
/lib/systemd/system/sockets.target.wants/*initctl* \
|
||||||
|
/lib/systemd/system/basic.target.wants/* \
|
||||||
|
/lib/systemd/system/anaconda.target.wants/*
|
||||||
|
|
||||||
|
# Définir le point d'entrée
|
||||||
|
ENTRYPOINT ["/lib/systemd/systemd"]
|
||||||
Loading…
x
Reference in New Issue
Block a user