2023-06-17 18:43:23 -04:00
|
|
|
FROM almalinux:9 AS base
|
2023-02-22 15:48:51 -05:00
|
|
|
|
|
|
|
ENV container docker
|
|
|
|
|
|
|
|
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
|
2023-03-27 11:02:51 -04:00
|
|
|
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
|
2023-03-28 04:23:20 -04:00
|
|
|
rm -f /lib/systemd/system/multi-user.target.wants/*; \
|
|
|
|
rm -f /etc/systemd/system/*.wants/*; \
|
2023-03-27 11:02:51 -04:00
|
|
|
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*; \
|
2023-03-28 04:23:20 -04:00
|
|
|
rm -f /lib/systemd/system/basic.target.wants/*; \
|
|
|
|
rm -f /lib/systemd/system/anaconda.target.wants/*
|
2023-02-22 15:48:51 -05:00
|
|
|
|
2023-03-27 11:02:51 -04:00
|
|
|
FROM base
|
2023-02-22 15:48:51 -05:00
|
|
|
|
2024-05-05 15:31:02 -04:00
|
|
|
ARG FFPLAYOUT_VERSION=0.22.0
|
2023-06-17 18:43:23 -04:00
|
|
|
COPY README.md *.rpm /tmp/
|
|
|
|
|
|
|
|
RUN dnf update -y && \
|
|
|
|
dnf install -y epel-release && \
|
|
|
|
dnf install -y 'dnf-command(config-manager)' && \
|
|
|
|
dnf config-manager --set-enabled crb && \
|
|
|
|
dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm && \
|
|
|
|
dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm && \
|
2024-04-10 08:34:46 -04:00
|
|
|
dnf install -y ffmpeg wget dejavu-sans-fonts sudo && \
|
2023-06-17 18:43:23 -04:00
|
|
|
dnf clean all
|
|
|
|
|
|
|
|
RUN [[ -f /tmp/ffplayout-${FFPLAYOUT_VERSION}-1.x86_64.rpm ]] || wget -q "https://github.com/ffplayout/ffplayout/releases/download/v${FFPLAYOUT_VERSION}/ffplayout-${FFPLAYOUT_VERSION}-1.x86_64.rpm" -P /tmp/ && \
|
|
|
|
dnf install -y /tmp/ffplayout-${FFPLAYOUT_VERSION}-1.x86_64.rpm && \
|
|
|
|
rm /tmp/ffplayout-${FFPLAYOUT_VERSION}-1.x86_64.rpm && \
|
2023-06-21 02:12:49 -04:00
|
|
|
sed -i "s/User=ffpu/User=root/g" /usr/lib/systemd/system/ffplayout.service && \
|
2023-06-17 18:43:23 -04:00
|
|
|
systemctl enable ffplayout && \
|
2024-06-12 04:16:00 -04:00
|
|
|
ffplayout -u admin -p admin -m contact@example.com
|
2023-02-22 15:48:51 -05:00
|
|
|
|
|
|
|
EXPOSE 8787
|
|
|
|
|
2024-04-10 08:34:46 -04:00
|
|
|
# Maybe on some systems is needed, combined with run parameters: --tmpfs /tmp --tmpfs /run --tmpfs /run/lock
|
|
|
|
# More infos: https://serverfault.com/a/1087467/387878
|
|
|
|
#VOLUME [ "/tmp", "/run", "/run/lock" ]
|
2023-02-22 15:48:51 -05:00
|
|
|
|
2023-03-27 11:02:51 -04:00
|
|
|
CMD ["/usr/sbin/init"]
|