1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/ntopng/Dockerfile

32 lines
877 B
Docker
Raw Normal View History

2019-05-25 11:47:03 +00:00
#
# Dockerfile for ntopng
#
2021-01-13 06:32:30 +00:00
FROM ubuntu:20.04
2019-05-25 11:47:03 +00:00
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt update \
2019-05-26 02:26:44 +00:00
&& apt install -y curl gnupg libjson-c3 \
&& curl -sSL http://packages.ntop.org/apt-stable/ntop.key | apt-key add - \
&& { \
2021-01-13 06:32:30 +00:00
echo "deb http://packages.ntop.org/apt/20.04/ x64/"; \
echo "deb http://packages.ntop.org/apt/20.04/ all/"; \
2019-05-26 02:26:44 +00:00
} > /etc/apt/sources.list.d/ntop.list \
2019-05-25 11:47:03 +00:00
&& apt update \
&& apt install -y ntopng \
&& rm -rf /var/lib/apt/lists/*
VOLUME /var/lib/ntopng
EXPOSE 3000 5556
2019-05-26 02:26:44 +00:00
ENTRYPOINT ["ntopng"]
CMD [ \
2019-05-26 03:35:13 +00:00
"--community", \
"--data-dir", "/var/lib/ntopng", \
2019-05-26 02:26:44 +00:00
"--http-port", "0.0.0.0:3000", \
"--interface", "tcp://0.0.0.0:5556c", \
2019-05-26 03:35:13 +00:00
"--redis", "redis" \
2019-05-26 02:26:44 +00:00
]