1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00

update ntopng

This commit is contained in:
kev 2019-05-26 10:26:44 +08:00
parent 5705084f6d
commit 739515e64f

@ -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" \
]