File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ ARG BUILD
3
3
4
4
ARG LUAJIT_INC=/usr/include/luajit-2.1
5
5
ARG LUAJIT_LIB=/usr/lib
6
+ ARG NGINX_VER=1.25.0
6
7
8
+ WORKDIR /src
7
9
# Requirements
8
- RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl libtool autoconf automake \
10
+ RUN apk add --no-cache ca-certificates build-base patch cmake git perl libtool autoconf automake \
9
11
libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev lua5.1-dev && \
10
12
mkdir /src && \
11
13
# Openssl
@@ -22,7 +24,8 @@ RUN git clone --recursive https://github.com/SpiderLabs/ModSecurity /src/ModSecu
22
24
make -j "$(nproc)" install && \
23
25
strip -s /usr/local/modsecurity/lib/libmodsecurity.so.3
24
26
# Nginx
25
- RUN hg clone https://hg.nginx.org/nginx -r "default" /src/nginx && \
27
+ RUN wget https://nginx.org/download/nginx-"$NGINX_VER" .tar.gz -O - | tar xzC /src && \
28
+ mv /src/nginx-"$NGINX_VER" /src/nginx && \
26
29
wget https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master/nginx__dynamic_tls_records_1.17.7%2B.patch -O /src/nginx/1.patch && \
27
30
wget https://github.com/angristan/nginx-autoinstall/raw/master/patches/nginx_hpack_push_with_http3.patch -O /src/nginx/2.patch && \
28
31
wget https://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-1.23.0-resolver_conf_parsing.patch -O /src/nginx/3.patch && \
You can’t perform that action at this time.
0 commit comments