Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,23 @@ RUN mkdir /root/modules && \
cd nginx-module-vts-${vts_version} && \
git checkout ${vts_version}

ARG openssl="openssl-1.0.1u"
ARG openssl_url="https://www.openssl.org/source/old/1.0.1/${openssl}.tar.gz"
ARG nginx_version="1.14.2"

ARG brotli_version='e505dce'
RUN cd /root/modules && \
git clone https://github.com/google/ngx_brotli && \
mv ngx_brotli nginx-module-brotli-${brotli_version} && \
cd nginx-module-brotli-${brotli_version}&& \
git submodule update --init &&\
git checkout ${brotli_version}

ARG openssl="openssl-1.0.2g"
ARG openssl_url="https://www.openssl.org/source/old/1.0.2/${openssl}.tar.gz"
ARG nginx_version="1.16.1"
ARG nginx_deb_version="1~${ubuntu_codename}"
RUN cd /root && \
wget ${openssl_url} && \
gzip -d ${openssl}.tar.gz -c | tar -x && \
apt-get source nginx=${nginx_version}-${nginx_deb_version} && \
sed -i "s@./configure --prefix@./configure --with-openssl=/root/${openssl} --with-openssl-opt='no-ssl2 no-ssl3 -fPIC' --prefix@g;s@--with-stream_ssl_preread_module@--with-stream_ssl_preread_module --add-module=/root/modules/nginx-module-vts-${vts_version}@" ./nginx-${nginx_version}/debian/rules
sed -i "s@./configure --prefix@./configure --with-openssl=/root/${openssl} --with-openssl-opt='no-ssl2 no-ssl3 -fPIC' --prefix@g;s@--with-stream_ssl_preread_module@--with-stream_ssl_preread_module --add-module=/root/modules/nginx-module-vts-${vts_version} --add-module=/root/modules/nginx-module-brotli-${brotli_version}@" ./nginx-${nginx_version}/debian/rules

WORKDIR /root/nginx-${nginx_version}