nfqueue to hyperscan and stream match, removed proxyregex
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -17,15 +17,9 @@ RUN bun run build
|
||||
FROM --platform=$TARGETARCH debian:stable-slim AS base
|
||||
RUN apt-get update -qq && apt-get upgrade -qq && \
|
||||
apt-get install -qq python3-pip build-essential \
|
||||
git libpcre2-dev libnetfilter-queue-dev libssl-dev \
|
||||
libnfnetlink-dev libmnl-dev libcap2-bin make cmake \
|
||||
nftables libboost-all-dev autoconf automake cargo \
|
||||
libffi-dev libvectorscan-dev libtins-dev python3-nftables
|
||||
|
||||
WORKDIR /tmp/
|
||||
RUN git clone --single-branch --branch release https://github.com/jpcre2/jpcre2
|
||||
WORKDIR /tmp/jpcre2
|
||||
RUN ./configure; make -j`nproc`; make install
|
||||
git libnetfilter-queue-dev libssl-dev \
|
||||
libnfnetlink-dev libmnl-dev libcap2-bin \
|
||||
nftables libffi-dev libvectorscan-dev libtins-dev python3-nftables
|
||||
|
||||
RUN mkdir -p /execute/modules
|
||||
WORKDIR /execute
|
||||
@@ -34,8 +28,7 @@ ADD ./backend/requirements.txt /execute/requirements.txt
|
||||
RUN pip3 install --no-cache-dir --break-system-packages -r /execute/requirements.txt --no-warn-script-location
|
||||
|
||||
COPY ./backend/binsrc /execute/binsrc
|
||||
RUN g++ binsrc/nfqueue.cpp -o modules/cppqueue -O3 -lnetfilter_queue -pthread -lpcre2-8 -ltins -lmnl -lnfnetlink
|
||||
RUN g++ binsrc/proxy.cpp -o modules/proxy -O3 -pthread -lboost_system -lboost_thread -lpcre2-8
|
||||
RUN g++ binsrc/nfqueue.cpp -o modules/cppqueue -O3 -lnetfilter_queue -pthread -lnfnetlink $(pkg-config --cflags --libs libtins libhs libmnl)
|
||||
|
||||
COPY ./backend/ /execute/
|
||||
COPY --from=frontend /app/dist/ ./frontend/
|
||||
|
||||
Reference in New Issue
Block a user