Ubuntu 18.04 RTMP

FROM ubuntu
MAINTAINER iriszero48 version: 0.1
RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list && \
 sed -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
RUN apt-get update && apt-get -y install nginx libnginx-mod-rtmp
EXPOSE 1935
RUN echo "rtmp{server{listen 1935;chunk_size 4096;application live {live on;}}}" >> /etc/nginx/nginx.conf
CMD service nginx start && bash

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注