diff options
author | macauley_cheng <macauley_cheng@accton.com> | 2022-12-21 17:28:21 +0800 |
---|---|---|
committer | Toni <matzeton@googlemail.com> | 2023-01-09 21:13:53 +0100 |
commit | 3dcc13b052a0d028f5e825fc4e4e72ddb01355e6 (patch) | |
tree | 691d3c0d9dc54a659cc269e7eaa552a93ea3e942 /Dockerfile | |
parent | e9443d7618276873f2dbcb2bdffca5d9991c1f84 (diff) |
add Docker related file
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..0c48d79e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +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"] |