mirror of
https://github.com/outbackdingo/nDPId.git
synced 2026-01-27 10:19:45 +00:00
26 lines
713 B
Docker
26 lines
713 B
Docker
FROM ubuntu:22.10 as builder
|
|
|
|
WORKDIR /root
|
|
RUN apt-get -y update && apt-get install -y git cmake pkg-config libpcap-dev autoconf libtool
|
|
|
|
RUN git clone https://github.com/utoni/nDPId.git
|
|
#for dev, uncomment below
|
|
#RUN mkdir /root/nDPId
|
|
#COPY . /root/nDPId/
|
|
|
|
RUN cd nDPId && mkdir build && cd build && cmake .. -DBUILD_NDPI=ON && make
|
|
|
|
|
|
FROM ubuntu:22.10
|
|
WORKDIR /root
|
|
RUN apt-get -y update && apt-get -y install libpcap-dev
|
|
|
|
COPY --from=builder /root/nDPId/libnDPI/ /root/
|
|
COPY --from=builder /root/nDPId/build/nDPIsrvd /root/nDPId/build/nDPId /root/
|
|
|
|
#RUN echo "#!/bin/bash\n" \
|
|
# "/root/nDPIsrvd -d\n"\
|
|
# "/root/nDPId \n" > run.sh && cat run.sh && chmod +x run.sh
|
|
|
|
#ENTRYPOINT ["/root/run.sh"]
|