Skip to content

Commit b295c6a

Browse files
authored
use nginx v1.25.0
Signed-off-by: Zoey <[email protected]>
1 parent 7c4562c commit b295c6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ ARG BUILD
33

44
ARG LUAJIT_INC=/usr/include/luajit-2.1
55
ARG LUAJIT_LIB=/usr/lib
6+
ARG NGINX_VER=1.25.0
67

8+
WORKDIR /src
79
# 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 \
911
libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev lua5.1-dev && \
1012
mkdir /src && \
1113
# Openssl
@@ -22,7 +24,8 @@ RUN git clone --recursive https://github.com/SpiderLabs/ModSecurity /src/ModSecu
2224
make -j "$(nproc)" install && \
2325
strip -s /usr/local/modsecurity/lib/libmodsecurity.so.3
2426
# 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 && \
2629
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 && \
2730
wget https://github.com/angristan/nginx-autoinstall/raw/master/patches/nginx_hpack_push_with_http3.patch -O /src/nginx/2.patch && \
2831
wget https://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-1.23.0-resolver_conf_parsing.patch -O /src/nginx/3.patch && \

0 commit comments

Comments
 (0)