51 lines
1.8 KiB
Docker
51 lines
1.8 KiB
Docker
FROM almalinux:9.1 AS base
|
|
|
|
ENV container docker
|
|
RUN dnf -y install libgomp && \
|
|
dnf clean all;
|
|
|
|
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/*;
|
|
|
|
|
|
|
|
FROM base
|
|
|
|
ARG FFPLAYOUT_VERSION=0.17.1
|
|
|
|
ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
|
|
|
|
ADD ./overide.conf /etc/systemd/system/ffplayout.service.d/overide.conf
|
|
|
|
|
|
RUN 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 && \
|
|
dnf install -y ffmpeg ffmpeg-devel
|
|
|
|
RUN \
|
|
dnf update -y \
|
|
&& dnf install -y wget dejavu-sans-fonts sudo \
|
|
&& wget -q -O /tmp/ffplayout_${FFPLAYOUT_VERSION}.x86_64.rpm "https://github.com/ffplayout/ffplayout/releases/download/v${VERSION}/ffplayout-${FFPLAYOUT_VERSION}-1.x86_64.rpm" \
|
|
&& yum install -y /tmp/ffplayout_${FFPLAYOUT_VERSION}.x86_64.rpm \
|
|
&& dnf clean all \
|
|
&& rm /tmp/ffplayout-${FFPLAYOUT_VERSION}.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
|
|
|
|
EXPOSE 8787
|
|
|
|
VOLUME [ "/sys/fs/cgroup" ]
|
|
|
|
CMD ["/usr/sbin/init"] |