Skip to content

Commit

Permalink
fix pcre
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored May 18, 2023
1 parent 3a68e00 commit 7c62944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG LUAJIT_LIB=/usr/lib

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

0 comments on commit 7c62944

Please sign in to comment.