From 32ba6b390ae4c4c6cf5081b2cb5ac8fd3896f6e1 Mon Sep 17 00:00:00 2001 From: ImBenji Date: Fri, 29 Aug 2025 01:38:47 +0100 Subject: [PATCH] Enhance Dockerfile for protocol analyzer: add debug checks for nDPI installation and update include paths --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4bfd20f..3715d19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,8 +38,12 @@ RUN dart pub get COPY lib/ ./lib/ COPY protocol_analyzer.c ./ +# Debug: Check what nDPI installed +RUN find /usr -name "*ndpi*" -type f 2>/dev/null | head -10 +RUN find /usr -name "*.h" -path "*ndpi*" 2>/dev/null | head -10 + # Compile the C protocol analyzer -RUN gcc -o protocol_analyzer protocol_analyzer.c -I/usr/local/include -L/usr/local/lib -lndpi -lpcap +RUN gcc -o protocol_analyzer protocol_analyzer.c -I/usr/local/include -I/usr/local/include/libndpi-4.8.0/libndpi -L/usr/local/lib -lndpi -lpcap # Compile the application RUN dart compile exe lib/main.dart -o waylume_server