twitch-irl-docker/build/Dockerfile

57 lines
1.7 KiB
Docker
Raw Permalink Normal View History

2022-08-12 20:48:25 +02:00
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==0.5.3
2022-08-12 20:48:25 +02:00
RUN pip3 install lxml
RUN apt-get install -y supervisor coreutils dehydrated dos2unix
2022-08-12 20:48:25 +02:00
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
2022-08-12 20:48:25 +02:00
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/
2022-08-16 17:54:50 +02:00
VOLUME /var/lib/dehydrated/
2022-08-12 20:48:25 +02:00
EXPOSE 1935
EXPOSE 80
CMD "/startup.sh"