FROM debian:bullseye RUN apt-get update RUN apt-get install build-essential gettext-base -y RUN apt-get install wget curl unp unzip daemon apt-transport-https software-properties-common ffmpeg -y RUN apt-get install -y nginx libnginx-mod-rtmp RUN apt-get install -y php-fpm RUN mkdir /run/php RUN apt-get install -y fcgiwrap memcached RUN apt-get install -y zsh mc apache2-utils RUN apt-get install -y python3 python3-yaml python3-requests python3-oauthlib python3-pip python3-bs4 python3-memcache RUN apt-get install -y git RUN pip3 install argparse RUN pip3 install irc RUN pip3 install obs-websocket-py RUN pip3 install lxml RUN apt-get install -y supervisor coreutils dehydrated dos2unix COPY ./supervisord/*.conf /etc/supervisor/conf.d/ COPY ./nginx/nginx.conf /etc/nginx/nginx.conf COPY ./nginx/nginx_tmp.conf /etc/nginx/nginx_tmp.conf COPY ./nginx/dhparams.pem /etc/nginx/dhparams.pem COPY ./nginx/snakeoil.pem /etc/nginx/snakeoil.pem COPY ./nginx/snakeoil.pem /etc/nginx/snakeoil.key COPY ./nginx/domains.txt /etc/dehydrated/domains.txt COPY ./nginx/dehydrated.conf /etc/dehydrated/config RUN /usr/bin/dos2unix /etc/dehydrated/config RUN mkdir -p /var/www/html/ COPY ./www/* /var/www/html/ COPY ./debug/rtmp_stats.xml /var/www/html/debug.xml COPY ./debug/router_stats.json /var/www/html/debug.json RUN chown www-data:www-data /var/www/html/ -R RUN chmod +x /var/www/html/set_ext.py RUN chmod +x /var/www/html/index.py RUN chmod +x /var/www/html/ext_data.py RUN chmod +x /var/www/html/data.py RUN mkdir -p /opt/scripts COPY ./scripts/ /opt/scripts/ RUN chmod +x /opt/scripts/*.py -R COPY ./startup.sh /startup.sh RUN chmod +x /startup.sh VOLUME /opt/scripts/vol/ VOLUME /var/www/html/ EXPOSE 1935 EXPOSE 80 CMD "/startup.sh"