Update: Clean files every hour
This commit is contained in:
parent
706993bc93
commit
a436751bf3
@ -1,6 +1,7 @@
|
||||
FROM registry.sindominio.net/nginx
|
||||
|
||||
RUN apt-get update && apt-get install -y libnginx-mod-rtmp && apt-get clean
|
||||
RUN apt-get update -y && \
|
||||
apt-get install -y libnginx-mod-rtmp cron
|
||||
|
||||
RUN rm -rf /var/www/html/*
|
||||
|
||||
@ -8,6 +9,9 @@ RUN rm -rf /var/www/html/*
|
||||
WORKDIR /tmp/
|
||||
COPY nginx-rtmp.conf /tmp/
|
||||
RUN cat /tmp/nginx-rtmp.conf >> /etc/nginx/nginx.conf
|
||||
RUN rm -rf /tmp/*
|
||||
|
||||
ADD clean.sh /etc/cron.hourly/
|
||||
|
||||
RUN mkdir -p /var/www/html/hls && \
|
||||
chmod 777 /var/www/html/hls && \
|
||||
|
Loading…
Reference in New Issue
Block a user