1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/ntopng/Dockerfile

32 lines
894 B
Docker
Raw Normal View History

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