servidor de streaming rtmp en
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

1 year ago
FROM as builder
RUN apt-get update && apt-get install -y nginx libnginx-mod-rtmp
COPY mirar-release-key.asc /key.asc
# config nginx with rtmp app points
COPY nginx.conf /etc/nginx/
RUN mkdir -P /var/www/
RUN nginx -t
RUN nginx -s reload
1 year ago
# get video.min.js and video-js.min.css
RUN wget
RUN unzip -d video-js-7.10.2
RUN cp video-js-7.10.2/video-js.min.css video-js-7.10.2/video.min.js /var/www/
#get jquery
RUN wget
RUN cp /tmp/jquery-3.5.1.slim.min.js /var/www/html/
1 year ago
# App
RUN apt-get update && apt-get install -y nginx && apt-get clean
COPY --from=builder /src/webapp /app
# set up nginx configuration
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types && \
sed -i 's/80/8888/g' /etc/nginx/sites-enabled/default && \
sed -i 's/_log \/var\/.*;/_log \/dev\/stdout;/g' /etc/nginx/nginx.conf && \
touch /var/log/nginx/error.log && chmod 666 /var/log/nginx/error.log && \
chmod 777 /var/lib/nginx && \
chmod 777 /run
RUN rm -rf /var/www/html \
&& ln -s /app /var/www/html
ENTRYPOINT ["/usr/sbin/nginx"]
CMD ["-g", "daemon off;"]