Add build dependencies for nDPI in Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user