Add build dependencies for nDPI in Dockerfile

This commit is contained in:
ImBenji
2025-08-29 01:35:56 +01:00
parent fc222b59e7
commit 09e8fc3834

View File

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