Skip to content

Commit 7c62944

Browse files
authored
fix pcre
Signed-off-by: Zoey <[email protected]>
1 parent 3a68e00 commit 7c62944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG LUAJIT_LIB=/usr/lib
66

77
# Requirements
88
RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl libtool autoconf automake \
9-
libatomic_ops-dev zlib-dev luajit-dev pcre-dev pcre2-dev linux-headers yajl-dev libxml2-dev && \
9+
libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev && \
1010
mkdir /src && \
1111
# Openssl
1212
git clone --recursive https://github.com/quictls/openssl /src/openssl && \
@@ -17,7 +17,7 @@ RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl
1717
RUN git clone --recursive https://github.com/SpiderLabs/ModSecurity /src/ModSecurity && \
1818
cd /src/ModSecurity && \
1919
/src/ModSecurity/build.sh && \
20-
/src/ModSecurity/configure --with-pcre2 && \
20+
/src/ModSecurity/configure && \
2121
make -j "$(nproc)" && \
2222
make -j "$(nproc)" install
2323
# Nginx
@@ -99,7 +99,7 @@ RUN hg clone https://hg.nginx.org/nginx-quic -r "quic" /src/nginx && \
9999
FROM python:3.11.3-alpine3.18
100100
COPY --from=build /usr/local/nginx /usr/local/nginx
101101
COPY --from=build /usr/local/modsecurity/lib/libmodsecurity.so.3 /usr/local/modsecurity/lib/libmodsecurity.so.3
102-
RUN apk add --no-cache ca-certificates tzdata zlib luajit pcre pcre2 yajl libxml2 libstdc++ && \
102+
RUN apk add --no-cache ca-certificates tzdata zlib luajit pcre yajl libxml2 libstdc++ && \
103103
ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx
104104
ENTRYPOINT ["nginx"]
105105
CMD ["-g", "daemon off;"]

0 commit comments

Comments
 (0)