Skip to content

Commit 8d1b013

Browse files
committed
更新 Nginx 至 1.26.3, ModSecurity 至 v3.0.14
1 parent e797046 commit 8d1b013

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

Dockerfile.latest

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ RUN apk add --no-cache --virtual .build-deps \
2020
lmdb-dev \
2121
lua5.4-dev \
2222
make \
23-
pcre-dev \
2423
ssdeep \
2524
yajl-dev \
2625
zlib-dev \
2726
libxml2-dev \
2827
geoip-dev \
29-
pcre2-dev \
28+
pcre-dev \
3029
linux-headers \
3130
wget
3231

@@ -63,14 +62,16 @@ RUN cd /opt/nginx-1.26.3 \
6362
&& cp /opt/ModSecurity/unicode.mapping /etc/nginx/modsec/
6463

6564
# 最终镜像
66-
FROM nginx:1.26.3-alpine
65+
FROM nginx:1.26.3-alpine AS final
6766

6867
# 安装运行时依赖
6968
RUN apk add --no-cache --purge --virtual .runtime-deps \
7069
lua5.4 \
7170
yajl \
7271
libstdc++ \
7372
pcre \
73+
lmdb \
74+
geoip \
7475
libxml2
7576

7677
# 复制配置文件和模块
@@ -84,4 +85,4 @@ LABEL maintainer="AptS-1547 <[email protected]>" \
8485
nginx_version="1.26.3" \
8586
modsecurity_version="v3.0.14" \
8687
modsecurity_nginx_version="v1.0.3" \
87-
build_date="2025-05-21T04:03:54Z"
88+
build_date="2025-05-21T04:47:38Z"

Dockerfile.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ RUN apk add --no-cache --virtual .build-deps \
2020
lmdb-dev \
2121
lua5.4-dev \
2222
make \
23-
pcre-dev \
2423
ssdeep \
2524
yajl-dev \
2625
zlib-dev \
2726
libxml2-dev \
2827
geoip-dev \
29-
pcre2-dev \
28+
pcre-dev \
3029
linux-headers \
3130
wget
3231

@@ -63,14 +62,16 @@ RUN cd /opt/nginx-{{NGINX_VERSION}} \
6362
&& cp /opt/ModSecurity/unicode.mapping /etc/nginx/modsec/
6463

6564
# 最终镜像
66-
FROM nginx:{{NGINX_VERSION}}-alpine
65+
FROM nginx:{{NGINX_VERSION}}-alpine AS final
6766

6867
# 安装运行时依赖
6968
RUN apk add --no-cache --purge --virtual .runtime-deps \
7069
lua5.4 \
7170
yajl \
7271
libstdc++ \
7372
pcre \
73+
lmdb \
74+
geoip \
7475
libxml2
7576

7677
# 复制配置文件和模块

latest_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.26.3
1+
1.26.3

nginx-1.26.3/mod-3.0.14/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ RUN apk add --no-cache --virtual .build-deps \
2020
lmdb-dev \
2121
lua5.4-dev \
2222
make \
23-
pcre-dev \
2423
ssdeep \
2524
yajl-dev \
2625
zlib-dev \
2726
libxml2-dev \
2827
geoip-dev \
29-
pcre2-dev \
28+
pcre-dev \
3029
linux-headers \
3130
wget
3231

@@ -63,14 +62,16 @@ RUN cd /opt/nginx-1.26.3 \
6362
&& cp /opt/ModSecurity/unicode.mapping /etc/nginx/modsec/
6463

6564
# 最终镜像
66-
FROM nginx:1.26.3-alpine
65+
FROM nginx:1.26.3-alpine AS final
6766

6867
# 安装运行时依赖
6968
RUN apk add --no-cache --purge --virtual .runtime-deps \
7069
lua5.4 \
7170
yajl \
7271
libstdc++ \
7372
pcre \
73+
lmdb \
74+
geoip \
7475
libxml2
7576

7677
# 复制配置文件和模块
@@ -84,4 +85,4 @@ LABEL maintainer="AptS-1547 <[email protected]>" \
8485
nginx_version="1.26.3" \
8586
modsecurity_version="v3.0.14" \
8687
modsecurity_nginx_version="v1.0.3" \
87-
build_date="2025-05-21T04:03:54Z"
88+
build_date="2025-05-21T04:47:38Z"

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-21T04:03:54Z
8+
创建日期: 2025-05-21T04:47:38Z
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-21T04:03:54Z
4+
BUILD_DATE=2025-05-21T04:47:38Z

0 commit comments

Comments
 (0)