bunkerized-nginx/tests/Dockerfile-fedora

19 lines
880 B
Plaintext
Raw Normal View History

2021-08-16 15:21:44 +02:00
FROM fedora:34
RUN dnf install -y systemd findutils
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;\
rm -f /lib/systemd/system/*tmpfiles*;\
rm -f /lib/systemd/user/*tmpfiles*;\
find /lib/systemd/ -type f -iname "*.service" -exec rm -f {} \;;\
2021-08-18 17:46:28 +02:00
find /etc/systemd/ -type f -iname "*.service" -exec rm -f {} \;;\
find /lib/systemd/ -type f -iname "*.timer" -exec rm -f {} \;;\
find /etc/systemd/ -type f -iname "*.timer" -exec rm -f {} \;