This commit is contained in:
parent
8c26066026
commit
2d57f0b625
21
Dockerfile
21
Dockerfile
@ -5,17 +5,13 @@ ENV NGINX_RTMP_MODULE_VERSION 1.2.1
|
|||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y ca-certificates openssl libssl-dev ffmpeg && \
|
apt-get install -y ca-certificates openssl libssl-dev ffmpeg && \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
||||||
|
mkdir -p /tmp/build/ && \
|
||||||
RUN mkdir -p /tmp/build/ && \
|
|
||||||
cd /tmp/build/ && \
|
cd /tmp/build/ && \
|
||||||
wget -O ${NGINX_VERSION}.tar.gz https://nginx.org/download/${NGINX_VERSION}.tar.gz && \
|
wget -O ${NGINX_VERSION}.tar.gz https://nginx.org/download/${NGINX_VERSION}.tar.gz && \
|
||||||
tar -zxf ${NGINX_VERSION}.tar.gz
|
tar -zxf ${NGINX_VERSION}.tar.gz &&\
|
||||||
|
git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git &&\
|
||||||
RUN cd /tmp/build/ && \
|
cd /tmp/build/${NGINX_VERSION} && \
|
||||||
git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git
|
|
||||||
|
|
||||||
RUN cd /tmp/build/${NGINX_VERSION} && \
|
|
||||||
./configure \
|
./configure \
|
||||||
--sbin-path=/usr/local/sbin/nginx \
|
--sbin-path=/usr/local/sbin/nginx \
|
||||||
--conf-path=/etc/nginx/nginx.conf \
|
--conf-path=/etc/nginx/nginx.conf \
|
||||||
@ -36,13 +32,12 @@ RUN cd /tmp/build/${NGINX_VERSION} && \
|
|||||||
--with-compat \
|
--with-compat \
|
||||||
--add-module=../nginx-rtmp-module \
|
--add-module=../nginx-rtmp-module \
|
||||||
--with-debug\
|
--with-debug\
|
||||||
-builddir=/tmp/build/${NGINX_VERSION} \
|
--builddir=/tmp/build/${NGINX_VERSION} \
|
||||||
make -j $(getconf _NPROCESSORS_ONLN) && \
|
make -j $(getconf _NPROCESSORS_ONLN) && \
|
||||||
make install && \
|
make install && \
|
||||||
mkdir /var/lock/nginx && \
|
mkdir /var/lock/nginx && \
|
||||||
rm -rf /tmp/build
|
rm -rf /tmp/build && \
|
||||||
|
ln -sf /dev/stdout /var/log/nginx/access.log && \
|
||||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
|
|
||||||
ln -sf /dev/stderr /var/log/nginx/error.log
|
ln -sf /dev/stderr /var/log/nginx/error.log
|
||||||
|
|
||||||
COPY startscript.sh /usr/sbin/startscript.sh
|
COPY startscript.sh /usr/sbin/startscript.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user