Enhance Dockerfile for protocol analyzer: add debug checks for nDPI installation and update include paths

This commit is contained in:
ImBenji
2025-08-29 01:38:47 +01:00
parent 09e8fc3834
commit 32ba6b390a

View File

@@ -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