Skip to content

Commit 6c7a26b

Browse files
committed
更新 Nginx 至 1.26.3, ModSecurity 至 v3.0.14
1 parent 2accf6f commit 6c7a26b

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

Dockerfile.latest

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ RUN apk add --no-cache --virtual .build-deps \
2020
lmdb-dev \
2121
lua5.4-dev \
2222
make \
23-
ssdeep \
23+
curl-dev \
24+
pcre2-dev \
2425
yajl-dev \
2526
zlib-dev \
2627
libxml2-dev \
@@ -48,7 +49,7 @@ RUN cd /opt/ModSecurity \
4849
&& git submodule init \
4950
&& git submodule update \
5051
&& ./build.sh \
51-
&& ./configure --prefix=/usr/local/modsecurity \
52+
&& ./configure --prefix=/usr/local/modsecurity --with-lmdb --with-pcre2 \
5253
&& make \
5354
&& make install \
5455
&& make clean
@@ -69,10 +70,11 @@ RUN apk add --no-cache --purge --virtual .runtime-deps \
6970
lua5.4 \
7071
yajl \
7172
libstdc++ \
72-
pcre \
73+
pcre2 \
7374
lmdb \
7475
geoip \
75-
libxml2
76+
libxml2 \
77+
curl
7678

7779
# 复制配置文件和模块
7880
RUN sed -i '1i load_module modules/ngx_http_modsecurity_module.so;\n' /etc/nginx/nginx.conf
@@ -85,4 +87,4 @@ LABEL maintainer="AptS-1547 <[email protected]>" \
8587
nginx_version="1.26.3" \
8688
modsecurity_version="v3.0.14" \
8789
modsecurity_nginx_version="v1.0.3" \
88-
build_date="2025-05-21T05:01:35Z"
90+
build_date="2025-05-21T07:57:04Z"

Dockerfile.template

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ RUN apk add --no-cache --virtual .build-deps \
2020
lmdb-dev \
2121
lua5.4-dev \
2222
make \
23-
ssdeep \
23+
curl-dev \
24+
pcre2-dev \
2425
yajl-dev \
2526
zlib-dev \
2627
libxml2-dev \
@@ -48,7 +49,7 @@ RUN cd /opt/ModSecurity \
4849
&& git submodule init \
4950
&& git submodule update \
5051
&& ./build.sh \
51-
&& ./configure --prefix=/usr/local/modsecurity \
52+
&& ./configure --prefix=/usr/local/modsecurity --with-lmdb --with-pcre2 \
5253
&& make \
5354
&& make install \
5455
&& make clean
@@ -69,10 +70,11 @@ RUN apk add --no-cache --purge --virtual .runtime-deps \
6970
lua5.4 \
7071
yajl \
7172
libstdc++ \
72-
pcre \
73+
pcre2 \
7374
lmdb \
7475
geoip \
75-
libxml2
76+
libxml2 \
77+
curl
7678

7779
# 复制配置文件和模块
7880
RUN sed -i '1i load_module modules/ngx_http_modsecurity_module.so;\n' /etc/nginx/nginx.conf

nginx-1.26.3/mod-3.0.14/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ RUN apk add --no-cache --virtual .build-deps \
2020
lmdb-dev \
2121
lua5.4-dev \
2222
make \
23-
ssdeep \
23+
curl-dev \
24+
pcre2-dev \
2425
yajl-dev \
2526
zlib-dev \
2627
libxml2-dev \
@@ -48,7 +49,7 @@ RUN cd /opt/ModSecurity \
4849
&& git submodule init \
4950
&& git submodule update \
5051
&& ./build.sh \
51-
&& ./configure --prefix=/usr/local/modsecurity \
52+
&& ./configure --prefix=/usr/local/modsecurity --with-lmdb --with-pcre2 \
5253
&& make \
5354
&& make install \
5455
&& make clean
@@ -69,10 +70,11 @@ RUN apk add --no-cache --purge --virtual .runtime-deps \
6970
lua5.4 \
7071
yajl \
7172
libstdc++ \
72-
pcre \
73+
pcre2 \
7374
lmdb \
7475
geoip \
75-
libxml2
76+
libxml2 \
77+
curl
7678

7779
# 复制配置文件和模块
7880
RUN sed -i '1i load_module modules/ngx_http_modsecurity_module.so;\n' /etc/nginx/nginx.conf
@@ -85,4 +87,4 @@ LABEL maintainer="AptS-1547 <[email protected]>" \
8587
nginx_version="1.26.3" \
8688
modsecurity_version="v3.0.14" \
8789
modsecurity_nginx_version="v1.0.3" \
88-
build_date="2025-05-21T05:01:35Z"
90+
build_date="2025-05-21T07:57:04Z"

nginx-1.26.3/mod-3.0.14/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- ModSecurity: v3.0.14
66
- ModSecurity-nginx: v1.0.3
77

8-
创建日期: 2025-05-21T05:01:35Z
8+
创建日期: 2025-05-21T07:57:04Z
99

1010
## 构建镜像
1111

versions.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
NGINX_VERSION=1.26.3
22
MODSECURITY_VERSION=v3.0.14
33
MODSECURITY_NGINX_VERSION=v1.0.3
4-
BUILD_DATE=2025-05-21T05:01:35Z
4+
BUILD_DATE=2025-05-21T07:57:04Z

0 commit comments

Comments
 (0)