FROM alpine:3.12 RUN apk add --no-cache nginx nginx-mod-rtmp; \ mkdir -p /etc/nginx/streams.d; \ ln -sf /dev/stdout /var/log/nginx/access.log; \ ln -sf /dev/stderr /var/log/nginx/error.log COPY docker-entrypoint.sh / COPY nginx.conf /etc/nginx/ COPY idle.m3u8 /var/www/live/ WORKDIR /var/www/live EXPOSE 80 EXPOSE 1935 STOPSIGNAL SIGTERM ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["-g", "daemon off;"]