Dockerfile 943 B

1234567891011121314151617181920212223242526272829303132
  1. FROM debian:latest
  2. MAINTAINER Volodymyr Tkach <vladimirok5959@gmail.com>
  3. ARG DEBIAN_FRONTEND=noninteractive
  4. RUN apt-get -y update && \
  5. apt-get -y upgrade && \
  6. apt-get -y install build-essential && \
  7. apt-get -y install libpcre3 && \
  8. apt-get -y install libpcre3-dev && \
  9. apt-get -y install libssl-dev && \
  10. apt-get -y install curl && \
  11. apt-get -y install nginx && \
  12. apt-get -y install ffmpeg && \
  13. apt-get -y install libnginx-mod-rtmp && \
  14. mkdir /var/www/html/recordings && \
  15. chown -R www-data:www-data /var/www/html/recordings && \
  16. echo "" >> /root/.profile && \
  17. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.profile && \
  18. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.profile && \
  19. echo "" >> /root/.bashrc && \
  20. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.bashrc && \
  21. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.bashrc
  22. COPY --chown=root:root ./docker /
  23. EXPOSE 1935
  24. EXPOSE 8999
  25. STOPSIGNAL SIGQUIT
  26. CMD /usr/sbin/nginx