mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 01:12:22 +00:00
* fixed dependabot werkzeug (3.0.3 to 3.0.6) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
24 lines
779 B
Docker
24 lines
779 B
Docker
FROM ubuntu:22.04 AS builder
|
|
|
|
WORKDIR /root
|
|
RUN apt-get -y update && apt-get install -y --no-install-recommends \
|
|
autoconf automake build-essential ca-certificates cmake git \
|
|
libpcap-dev libtool make pkg-config unzip wget && apt-get clean
|
|
RUN git clone https://github.com/utoni/nDPId.git
|
|
|
|
WORKDIR /root/nDPId
|
|
RUN cmake -S . -B build -DBUILD_NDPI=ON && cmake --build build --verbose
|
|
|
|
FROM ubuntu:22.04
|
|
USER root
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /root/nDPId/build/nDPId /usr/sbin/nDPId
|
|
COPY --from=builder /root/nDPId/build/nDPIsrvd /usr/bin/nDPIsrvd
|
|
|
|
RUN apt-get -y update && apt-get install -y --no-install-recommends libpcap-dev && apt-get clean
|
|
|
|
USER nobody
|
|
RUN /usr/bin/nDPIsrvd -h || { RC=$?; test ${RC} -eq 1; }
|
|
RUN /usr/sbin/nDPId -h || { RC=$?; test ${RC} -eq 1; }
|