-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathDockerfile~
25 lines (25 loc) · 1012 Bytes
/
Dockerfile~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:14.04
MAINTAINER Andy C "[email protected]"
ENV REFRESHED_AT 2015-10-21
RUN apt-get -y -q update
RUN apt-get install -y git
RUN apt-get install -y gcc
RUN apt-get install -y make
RUN apt-get install -y libpcre3-dev
RUN apt-get install -y libssl-dev
RUN apt-get install -y wget
RUN mkdir -p /home/nginx-rtmp-module
RUN git clone https://github.com/arut/nginx-rtmp-module /home/nginx-rtmp-module
RUN mkdir -p /home/nginx
RUN cd /home/nginx && wget http://nginx.org/download/nginx-1.4.3.tar.gz && tar zxpvf nginx-1.4.3.tar.gz
RUN cd /home/nginx/nginx-1.4.3 && ./configure --add-module=/home/nginx-rtmp-module/ --with-http_ssl_module --prefix=/usr/local/nginx-streaming/
RUN cd /home/nginx/nginx-1.4.3&& make && make install
RUN mkdir -p /var/www/html
RUN mkdir -p /var/www
RUN mkdir -p /var/log/nginx
RUN cp /home/nginx-rtmp-module/stat.xsl /var/www/
ADD nginx/nginx.conf /usr/local/nginx-streaming/conf/nginx.conf
ADD www/index.html /var/www/
ADD www/crossdomain.xml /var/www
EXPOSE 80
EXPOSE 1935