This commit is contained in:
parent
fd182b6baf
commit
923535797a
26
Dockerfile
26
Dockerfile
@ -7,18 +7,15 @@ 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/*
|
||||||
|
|
||||||
RUN mkdir -p /tmp/build/nginx && \
|
RUN mkdir -p /tmp/build/ && \
|
||||||
cd /tmp/build/nginx && \
|
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
|
||||||
|
|
||||||
RUN mkdir -p /tmp/build/nginx-rtmp-module && \
|
RUN cd /tmp/build/ && \
|
||||||
cd /tmp/build/nginx-rtmp-module && \
|
git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git
|
||||||
wget -O nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}.tar.gz https://github.com/arut/nginx-rtmp-module/archive/v${NGINX_RTMP_MODULE_VERSION}.tar.gz && \
|
|
||||||
tar -zxf nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}.tar.gz && \
|
|
||||||
cd nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}
|
|
||||||
|
|
||||||
RUN cd /tmp/build/nginx/${NGINX_VERSION} && \
|
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 \
|
||||||
@ -29,8 +26,17 @@ RUN cd /tmp/build/nginx/${NGINX_VERSION} && \
|
|||||||
--http-client-body-temp-path=/tmp/nginx-client-body \
|
--http-client-body-temp-path=/tmp/nginx-client-body \
|
||||||
--with-http_ssl_module \
|
--with-http_ssl_module \
|
||||||
--with-threads \
|
--with-threads \
|
||||||
--with-ipv6 \
|
--with-select_module \
|
||||||
--add-module=/tmp/build/nginx-rtmp-module/nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION} && \
|
--with-poll_module \
|
||||||
|
--with-file-aio \
|
||||||
|
--with-stream=dynamic \
|
||||||
|
--with-stream_ssl_module \
|
||||||
|
--with-stream_realip_module \
|
||||||
|
--with-stream_ssl_preread_module \
|
||||||
|
--with-compat \
|
||||||
|
--add-module=../nginx-rtmp-module \
|
||||||
|
--with-debug\
|
||||||
|
-builddir=${NGINX_VERSION} \
|
||||||
make -j $(getconf _NPROCESSORS_ONLN) && \
|
make -j $(getconf _NPROCESSORS_ONLN) && \
|
||||||
make install && \
|
make install && \
|
||||||
mkdir /var/lock/nginx && \
|
mkdir /var/lock/nginx && \
|
||||||
|
Loading…
Reference in New Issue
Block a user