FROM alpine:3.12 RUN apk add --no-cache nginx nginx-mod-rtmp && mkdir -p /etc/nginx/streams.d COPY docker-entrypoint.sh / COPY rtmp.conf /etc/nginx/modules/ WORKDIR /var/www/live EXPOSE 80 STOPSIGNAL SIGTERM ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["-g", "daemon off;"]