2023-03-27 11:02:51 -04:00
|
|
|
FROM almalinux:9 AS base
|
2023-02-27 15:36:20 -05:00
|
|
|
|
|
|
|
ENV container docker
|
2023-03-27 11:02:51 -04:00
|
|
|
RUN dnf -y install libgomp && \
|
|
|
|
dnf clean all;
|
2023-02-27 15:36:20 -05:00
|
|
|
|
|
|
|
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
|
2023-03-28 04:23:20 -04:00
|
|
|
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/*
|
2023-02-27 15:36:20 -05:00
|
|
|
|
2023-03-27 11:02:51 -04:00
|
|
|
FROM base
|
2023-02-27 15:36:20 -05:00
|
|
|
|
2023-06-12 11:27:46 -04:00
|
|
|
ARG FFPLAYOUT_VERSION=0.18.1
|
2023-03-28 04:23:20 -04:00
|
|
|
COPY README.md *.rpm /tmp/
|
2023-02-27 15:36:20 -05:00
|
|
|
|
2023-03-28 04:23:20 -04:00
|
|
|
RUN dnf update -y && \
|
|
|
|
dnf install -y epel-release && \
|
2023-02-27 15:36:20 -05:00
|
|
|
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 && \
|
2023-03-28 04:23:20 -04:00
|
|
|
dnf install -y ffmpeg ffmpeg-devel wget dejavu-sans-fonts sudo && \
|
|
|
|
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 && \
|
|
|
|
mkdir -p /home/ffpu && chown -R ffpu: /home/ffpu && \
|
|
|
|
systemctl enable ffplayout && \
|
|
|
|
systemctl enable ffpapi && \
|
|
|
|
ffpapi -u admin -p admin -m contact@example.com
|
2023-02-27 15:36:20 -05:00
|
|
|
|
|
|
|
EXPOSE 8787
|
|
|
|
|
|
|
|
VOLUME [ "/sys/fs/cgroup" ]
|
|
|
|
|
2023-03-27 11:02:51 -04:00
|
|
|
CMD ["/usr/sbin/init"]
|