Public Repository

Last pushed: 2 years ago
Short Description
nginx V1.9.15 with rtmp module and yamdi (Yet Another MetaData Injector for FLV)
Full Description

FROM ubuntu:14.04
MAINTAINER yuklia yuklia.dev@gmail.com

ENV NGINX_VERSION nginx-1.9.15
ENV PCRE_VERSION pcre-8.38 #Perl Compatible Regular Expressions library
ENV YAMDI_VERSION 1.9

RUN apt-get update && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*

RUN curl -O http://nginx.org/download/${NGINX_VERSION}.tar.gz && \
curl -O https://github.com/arut/nginx-rtmp-module/archive/master.zip && \
curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${PCRE_VERSION}.tar.gz

RUN tar -zxvf ${NGINX_VERSION}.tar.gz && \
tar -zxvf ${PCRE_VERSION}.tar.gz && \
unzip master.zip -d /home && \

cd ${NGINX_VERSION} && \
./configure \
--add-module=/home/nginx-rtmp-module-master --with-debug \
--with-pcre=/home/${PCRE_VERSION} \
--with-http_ssl_module && \

make && make install && \
ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx

#Yamdi installation
RUN curl -O http://sourceforge.net/projects/yamdi/files/yamdi/${YAMDI_VERSION}/yamdi-${YAMDI_VERSION}.tar.gz && \
tar xzf yamdi-${YAMDI_VERSION}.tar.gz && \
cd yamdi-${YAMDI_VERSION} && \
gcc yamdi.c -o yamdi -O2 -Wall && \
make && \
make install

RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

EXPOSE 80 443 1935

CMD ["nginx", "-g", "daemon off;"]

Docker Pull Command
Owner
yuklia