FROM ubuntu:19.10 ARG NGINX_VERSION=1.17.9 ARG NGINX_RTMP_VERSION=1.2.1 RUN apt-get update && \ apt-get install -y build-essential libpcre3 libpcre3-dev libssl-dev zlib1g-dev curl RUN cd /usr/src && \ curl -LO http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \ tar zxf nginx-${NGINX_VERSION}.tar.gz && \ rm nginx-${NGINX_VERSION}.tar.gz && \ curl -Lo nginx-rtmp-module.tar.gz https://github.com/arut/nginx-rtmp-module/archive/v${NGINX_RTMP_VERSION}.tar.gz && \ tar zxf nginx-rtmp-module.tar.gz && \ rm nginx-rtmp-module.tar.gz && \ cd nginx-${NGINX_VERSION} && \ ./configure --with-http_ssl_module --with-cc-opt="-Wimplicit-fallthrough=0" --add-module=../nginx-rtmp-module-${NGINX_RTMP_VERSION} RUN cd /usr/src/nginx-${NGINX_VERSION} && make && make install COPY nginx.conf /usr/local/nginx/conf/nginx.conf ENTRYPOINT ["/usr/local/nginx/sbin/nginx"]