File tree Expand file tree Collapse file tree 5 files changed +22
-16
lines changed Expand file tree Collapse file tree 5 files changed +22
-16
lines changed Original file line number Diff line number Diff 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# 复制配置文件和模块
7880RUN sed -i '1i load_module modules/ngx_http_modsecurity_module.so;\n' /etc/nginx/nginx.conf
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 "
Original file line number Diff line number Diff 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# 复制配置文件和模块
7880RUN sed -i '1i load_module modules/ngx_http_modsecurity_module.so;\n' /etc/nginx/nginx.conf
Original file line number Diff line number Diff 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# 复制配置文件和模块
7880RUN sed -i '1i load_module modules/ngx_http_modsecurity_module.so;\n ' /etc/nginx/nginx.conf
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 "
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11NGINX_VERSION = 1.26.3
22MODSECURITY_VERSION = v3.0.14
33MODSECURITY_NGINX_VERSION = v1.0.3
4- BUILD_DATE = 2025-05-21T05:01:35Z
4+ BUILD_DATE = 2025-05-21T07:57:04Z
You can’t perform that action at this time.
0 commit comments