-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.producer
54 lines (44 loc) · 1.36 KB
/
Dockerfile.producer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM alpine:3.19.0 as builder
WORKDIR /root
RUN apk update && \
apk add --no-cache git \
make \
cmake \
clang \
clang-dev \
make \
automake \
gcc \
g++ \
libc-dev \
linux-headers \
pkgconfig \
libpcap-dev \
autoconf \
bash \
libtool
RUN git clone --branch 1.6 https://github.com/utoni/nDPId.git
COPY nDPId/config.h nDPId
RUN cd nDPId && mkdir build && cd build && cmake .. -DBUILD_NDPI=ON && make
FROM alpine:3.17.1
ENV MAX_BUFFERED_LINES=1024 \
MAX_THREADS=4 \
FLOW_ANALYSIS=false \
TUNE_PARAM="" \
INTERFACE="" \
JA3_URL="" \
SSL_SHA1_URL="" \
PORT=7000 \
PCAP_FILTER="" \
NDPI_CUSTOM_PROTOCOLS="" \
NDPI_CUSTOM_CATEGORIES="" \
HOSTNAME=""
WORKDIR /root
RUN apk update && \
apk add --no-cache curl libpcap-dev bash
COPY --from=builder /root/nDPId/libnDPI/ /root/
COPY --from=builder /root/nDPId/build/nDPIsrvd /root/nDPId/build/nDPId /root/
COPY docker-entrypoint.sh /root/
RUN chmod +x /root/docker-entrypoint.sh
ENTRYPOINT ["/bin/bash", "/root/docker-entrypoint.sh"]
CMD ["nDPId"]