diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index bce898961..651cbee08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -FROM ubuntu:22.04 as builder +FROM ubuntu:22.04 AS builder WORKDIR /root RUN env DEBIAN_FRONTEND=noninteractive apt-get -y update && apt-get install -y --no-install-recommends autoconf automake build-essential ca-certificates wget unzip git make cmake pkg-config libpcap-dev autoconf libtool +RUN env DEBIAN_FRONTEND=noninteractive apt-get clean +RUN env DEBIAN_FRONTEND=noninteractive apt-get autoclean RUN git clone https://github.com/utoni/nDPId.git RUN cd nDPId && mkdir -p build && cd build && cmake .. -DBUILD_NDPI=ON && make @@ -14,6 +16,8 @@ COPY --from=builder /root/nDPId/build/nDPId /usr/sbin/nDPId COPY --from=builder /root/nDPId/build/nDPIsrvd /usr/bin/nDPIsrvd RUN env DEBIAN_FRONTEND=noninteractive apt-get -y update && apt-get install -y --no-install-recommends libpcap-dev +RUN env DEBIAN_FRONTEND=noninteractive apt-get clean +RUN env DEBIAN_FRONTEND=noninteractive apt-get autoclean USER nobody RUN /usr/bin/nDPIsrvd -h || { RC=$?; test ${RC} -eq 1; } |