sintoniza/Dockerfile

37 lines
1.1 KiB
Docker
Raw Normal View History

2023-05-06 22:32:09 +02:00
FROM registry.sindominio.net/nginx
2023-05-08 21:38:26 +02:00
RUN apt-get update -y && \
apt-get install -y libnginx-mod-rtmp cron \
ffmpeg wget
2023-05-06 22:32:09 +02:00
RUN rm -rf /var/www/html/*
# config nginx with rtmp app points
WORKDIR /tmp/
COPY nginx-rtmp.conf /tmp/
RUN cat /tmp/nginx-rtmp.conf >> /etc/nginx/nginx.conf
2023-05-08 21:38:26 +02:00
RUN rm -rf /tmp/*
ADD clean.sh /etc/cron.hourly/
2023-05-06 22:32:09 +02:00
RUN mkdir -p /var/www/html/hls && \
chmod 777 /var/www/html/hls && \
mkdir -p /var/www/html/canal && \
chmod 777 /var/www/html/canal
# poner el index.html css y js
COPY index.html /var/www/html/
RUN mkdir /var/www/html/rtmp/ && \
wget https://raw.githubusercontent.com/arut/nginx-rtmp-module/master/stat.xsl -O /var/www/html/rtmp/stat.xsl
2023-05-06 22:32:09 +02:00
RUN mkdir -p /var/www/html/assets/
COPY assets/styles-sintoniza.css /var/www/html/assets/
2023-05-06 22:54:00 +02:00
COPY assets/video-js.min.css /var/www/html/assets/video-js.min.css
COPY assets/video.min.js /var/www/html/assets/video-js.min.js
2023-05-06 22:32:09 +02:00
COPY assets/jquery-3.6.1.slim.min.js /var/www/html/assets/jquery-slim.min.js
# copiar la configuración por defecto de nginx con nuestros cambios incluidos
COPY nginx-site-default.conf /etc/nginx/sites-enabled/default
2023-05-06 22:32:09 +02:00