From 09e8fc3834d9f126d9a66900132b6d72b5a01280 Mon Sep 17 00:00:00 2001 From: ImBenji Date: Fri, 29 Aug 2025 01:35:56 +0100 Subject: [PATCH] Add build dependencies for nDPI in Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b052d97..4bfd20f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y \ RUN git clone https://github.com/ntop/nDPI.git /tmp/nDPI && \ cd /tmp/nDPI && \ ./autogen.sh && \ + ./configure --with-pic && \ make && \ make install && \ ldconfig && \ @@ -38,7 +39,7 @@ COPY lib/ ./lib/ COPY protocol_analyzer.c ./ # Compile the C protocol analyzer -RUN gcc -o protocol_analyzer protocol_analyzer.c -lndpi -lpcap +RUN gcc -o protocol_analyzer protocol_analyzer.c -I/usr/local/include -L/usr/local/lib -lndpi -lpcap # Compile the application RUN dart compile exe lib/main.dart -o waylume_server