diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-06 23:49:51 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-07 00:02:36 +0100 |
commit | 5d56288a113aa3aa2e68dbf54f0acde0650bafcb (patch) | |
tree | bc4e9904feac2a8c9e5f5287774416b1aa3822f9 /Dockerfile | |
parent | 84b12cd02c1f11d134f00b0a066414a677a53719 (diff) |
Fixed more SonarCloud complaints.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile index 651cbee08..d5f42a670 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,11 @@ 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 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 && apt-get clean RUN git clone https://github.com/utoni/nDPId.git -RUN cd nDPId && mkdir -p build && cd build && cmake .. -DBUILD_NDPI=ON && make + +WORKDIR /root/nDPId +RUN cmake -S . -B build -DBUILD_NDPI=ON && cmake --build build --verbose FROM ubuntu:22.04 USER root @@ -15,9 +14,7 @@ WORKDIR / 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 +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; } |