From 739515e64f10f20c96776ab04fcbaf5c30fac760 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 26 May 2019 10:26:44 +0800 Subject: [PATCH] update ntopng --- ntopng/Dockerfile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/ntopng/Dockerfile b/ntopng/Dockerfile index 26c2360..3fab214 100644 --- a/ntopng/Dockerfile +++ b/ntopng/Dockerfile @@ -3,14 +3,16 @@ # FROM ubuntu:18.04 - MAINTAINER EasyPi Software Foundation RUN set -xe \ && apt update \ - && apt install -y wget lsb-release gnupg libjson-c3 \ - && wget -q http://apt-stable.ntop.org/18.04/all/apt-ntop-stable.deb \ - && dpkg -i apt-ntop-stable.deb \ + && apt install -y curl gnupg libjson-c3 \ + && curl -sSL http://packages.ntop.org/apt-stable/ntop.key | apt-key add - \ + && { \ + echo "deb http://packages.ntop.org/apt/18.04/ x64/"; \ + echo "deb http://packages.ntop.org/apt/18.04/ all/"; \ + } > /etc/apt/sources.list.d/ntop.list \ && apt update \ && apt install -y ntopng \ && rm -rf /var/lib/apt/lists/* @@ -19,8 +21,11 @@ VOLUME /var/lib/ntopng EXPOSE 3000 5556 -CMD ntopng --http-port 0.0.0.0:3000 \ - --interface tcp://0.0.0.0:5556c \ - --data-dir /var/lib/ntopng \ - --redis redis \ - --community +ENTRYPOINT ["ntopng"] +CMD [ \ + "--http-port", "0.0.0.0:3000", \ + "--interface", "tcp://0.0.0.0:5556c", \ + "--data-dir", "/var/lib/ntopng", \ + "--redis", "redis", \ + "--community" \ + ]