diff --git a/Dockerfile b/Dockerfile index b052d97..4bfd20f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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