bunkerweb 1.4.0
This commit is contained in:
@@ -1,18 +1,27 @@
|
||||
FROM fedora:34
|
||||
FROM fedora:latest
|
||||
|
||||
RUN dnf install -y systemd findutils
|
||||
ENV container docker
|
||||
|
||||
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 {} \;;\
|
||||
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 {} \;
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install systemd \
|
||||
&& dnf clean all
|
||||
|
||||
RUN cd /lib/systemd/system/sysinit.target.wants/; \
|
||||
for i in *; do [ $i = systemd-tmpfiles-setup.service ] || rm -f $i; done
|
||||
|
||||
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/*
|
||||
|
||||
# Nginx
|
||||
RUN dnf update -y && \
|
||||
dnf install -y curl gnupg2 ca-certificates redhat-lsb-core python3-pip && \
|
||||
dnf install nginx-1.20.2 -y
|
||||
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
|
||||
CMD ["/usr/sbin/init"]
|
||||
Reference in New Issue
Block a user