File tree Expand file tree Collapse file tree 6 files changed +17
-14
lines changed Expand file tree Collapse file tree 6 files changed +17
-14
lines changed Original file line number Diff line number Diff 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# 安装运行时依赖
6968RUN 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# 复制配置文件和模块
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 "
Original file line number Diff line number Diff 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# 安装运行时依赖
6968RUN 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# 复制配置文件和模块
Original file line number Diff line number Diff line change 1- 1.26.3
1+ 1.26.3
Original file line number Diff line number Diff 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# 安装运行时依赖
6968RUN 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# 复制配置文件和模块
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 "
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-21T04:03:54Z
8+ 创建日期: 2025-05-21T04:47:38Z
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-21T04:03:54Z
4+ BUILD_DATE = 2025-05-21T04:47:38Z
You can’t perform that action at this time.
0 commit comments