本文最后更新于 1781 天前,其中的信息可能已经有所发展或是发生改变。
FROM centos:centos7
RUN yum -y update
RUN yum -y install gcc gcc-c++ autoconf automake make
RUN yum -y install zlib zlib-devel openssl* pcre* wget lua-devel
MAINTAINER Harson
WORKDIR /tmp
ADD nginx-1.17.8.tar.gz .
ADD nginx-http-flv-module-master.tar.gz .
RUN useradd -M -s /sbin/nologin nginx
RUN cd /tmp/nginx-1.17.8 \
&& ./configure --user=nginx --group=nginx \
--add-module=/tmp/nginx-http-flv-module-master \
&& make && make install
RUN rm -rf /usr/local/nginx/conf/nginx.conf
ADD nginx.conf /usr/local/nginx/conf/nginx.conf
EXPOSE 1935
EXPOSE 80
CMD ["/usr/local/nginx/sbin/nginx","-g","daemon off;"]
参考
https://www.gksec.com/rtmp.html
依赖
http://index.harson.co/source/