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 && \ RUN git clone https://github.com/ntop/nDPI.git /tmp/nDPI && \
cd /tmp/nDPI && \ cd /tmp/nDPI && \
./autogen.sh && \ ./autogen.sh && \
./configure --with-pic && \
make && \ make && \
make install && \ make install && \
ldconfig && \ ldconfig && \
@@ -38,7 +39,7 @@ COPY lib/ ./lib/
COPY protocol_analyzer.c ./ COPY protocol_analyzer.c ./
# Compile the C protocol analyzer # 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 # Compile the application
RUN dart compile exe lib/main.dart -o waylume_server RUN dart compile exe lib/main.dart -o waylume_server