File tree Expand file tree Collapse file tree 7 files changed +3
-41
lines changed Expand file tree Collapse file tree 7 files changed +3
-41
lines changed Original file line number Diff line number Diff line change 6262 CROWDSEC_OPENRESTY_BOUNCER_VERSION=${{ env.CROWDSEC_OPENRESTY_BOUNCER_VERSION }}
6363 LUA_VERSION=${{ env.LUA_VERSION }}
6464 LUAROCKS_VERSION=${{ env.LUAROCKS_VERSION }}
65- LIBMODSECURITY_VERSION=${{ env.LIBMODSECURITY_VERSION }}
6665 MODSECURITY_NGINX_VERSION=${{ env.MODSECURITY_NGINX_VERSION }}
6766 CRS_VERSION=${{ env.CRS_VERSION }}
6867
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ FROM debian:bookworm-slim AS nginxbuilder
77ARG OPENRESTY_VERSION
88ARG LUA_VERSION
99ARG LUAROCKS_VERSION
10- ARG LIBMODSECURITY_VERSION
1110ARG MODSECURITY_NGINX_VERSION
1211
1312RUN apt-get update \
@@ -20,24 +19,16 @@ RUN apt-get update \
2019 libssl-dev \
2120 openssl \
2221 unzip \
23- autoconf \
24- automake \
25- libtool \
26- libpcre2-dev \
27- libpcre2-posix3 \
2822 wget \
2923 zlib1g-dev \
3024 git \
31- libmaxminddb-dev
25+ libmaxminddb-dev \
26+ libmodsecurity3
3227
3328# Lua build
3429COPY ./scripts/build-lua /tmp/build-lua
3530RUN /tmp/build-lua
3631
37- # LibModSecurity build
38- COPY ./scripts/build-modsecurity /tmp/build-modsecurity
39- RUN /tmp/build-modsecurity
40-
4132# Nginx build
4233COPY ./scripts/build-openresty /tmp/build-openresty
4334RUN /tmp/build-openresty
@@ -75,6 +66,7 @@ RUN apt-get update \
7566 wget \
7667 xz-utils \
7768 libmaxminddb-dev \
69+ libmodsecurity3 \
7870 && apt-get clean \
7971 && rm -rf /var/lib/apt/lists/* \
8072 && rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
@@ -87,7 +79,6 @@ COPY --from=nginxbuilder /tmp/luarocks /tmp/luarocks
8779COPY ./scripts/install-lua /tmp/install-lua
8880
8981# Copy openresty build from first image
90- COPY --from=nginxbuilder /tmp/modsecurity /tmp/modsecurity
9182COPY --from=nginxbuilder /tmp/openresty /tmp/openresty
9283COPY ./scripts/install-openresty /tmp/install-openresty
9384
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export OPENRESTY_VERSION=1.25.3.2
1313export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
1414export LUA_VERSION=5.1.5
1515export LUAROCKS_VERSION=3.3.1
16- export LIBMODSECURITY_VERSION=3.0.13
1716export MODSECURITY_NGINX_VERSION=1.0.3
1817export CRS_VERSION=4.8.0
1918
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export OPENRESTY_VERSION=1.25.3.2
1313export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
1414export LUA_VERSION=5.1.5
1515export LUAROCKS_VERSION=3.3.1
16- export LIBMODSECURITY_VERSION=3.0.13
1716export MODSECURITY_NGINX_VERSION=1.0.3
1817export CRS_VERSION=4.8.0
1918
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ RESET='\E[0m'
88
99echo -e " ${BLUE} ❯ ${CYAN} Installing OpenResty ${YELLOW}${OPENRESTY_VERSION} ...${RESET} "
1010
11- cd /tmp/modsecurity
12- make install
13- rm -rf /tmp/modsecurity
14-
1511cd /tmp/openresty
1612make install
1713rm -rf /tmp/openresty
Original file line number Diff line number Diff line change @@ -2,6 +2,5 @@ OPENRESTY_VERSION=1.25.3.2
22CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
33LUA_VERSION=5.1.5
44LUAROCKS_VERSION=3.3.1
5- LIBMODSECURITY_VERSION=3.0.13
65MODSECURITY_NGINX_VERSION=1.0.3
76CRS_VERSION=4.8.0
You can’t perform that action at this time.
0 commit comments