mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
32 lines
1 KiB
Text
32 lines
1 KiB
Text
FROM fedora:40@sha256:7cdd2b48396929bb8723ea2fa60e03bee39cc22e2a853cbd891587fab4eb1bc9
|
|
|
|
ENV container=docker
|
|
ENV NGINX_VERSION=1.26.3
|
|
|
|
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 php-fpm curl gnupg2 ca-certificates redhat-lsb-core python3-pip which && \
|
|
dnf install 'dnf-command(config-manager)' -y && \
|
|
dnf config-manager --set-enabled updates-testing && \
|
|
dnf install nginx-${NGINX_VERSION} -y
|
|
|
|
COPY ./package-fedora/*.rpm /opt
|
|
|
|
VOLUME ["/sys/fs/cgroup"]
|
|
|
|
CMD ["/usr/sbin/init"]
|