diff --git a/ntopng/ntop/Dockerfile b/ntopng/ntop/Dockerfile index 0241931..e986298 100644 --- a/ntopng/ntop/Dockerfile +++ b/ntopng/ntop/Dockerfile @@ -1,13 +1,24 @@ -FROM ubuntu:focal +# from: https://github.com/ntop/docker-ntop/blob/master/Dockerfile.ntopng-arm64 +FROM debian:bullseye-slim -RUN apt-get update && apt-get -y upgrade \ - && echo "8 48" | apt-get install -y software-properties-common wget curl \ - && add-apt-repository universe \ - && wget https://packages.ntop.org/apt-stable/20.04/all/apt-ntop-stable.deb \ - && apt install -y ./apt-ntop-stable.deb \ - && apt-get install -y ntopng \ - && systemctl enable ntopng +# Main dependencies and ntop.org apt package repo installation +RUN apt-get update && \ + apt-get -y -q install software-properties-common wget lsb-release gnupg libelf1 && \ + wget -q http://packages.ntop.org/RaspberryPI/apt-ntop_1.0.190416-469_all.deb && \ + apt-get -y -q install ./apt-ntop_1.0.190416-469_all.deb -RUN mkdir /ntopngcustom \ - && chmod 777 /ntopngcustom +# ntopng, some of its dependencies and libcap2 / libzstd1 need to be armhf +# architecture, because latest ntopng (4.3) is not available in arm64 +RUN apt-get clean all && \ + dpkg --add-architecture armhf && \ + apt-get update && \ + apt-get -y -q install ntopng:armhf libcap2:armhf libzstd1:armhf + + +RUN echo '#!/bin/bash\n/etc/init.d/redis-server start\nntopng "$@" "$NTOP_CONFIG"' > /run.sh && \ + chmod +x /run.sh + +EXPOSE 3000 + +ENTRYPOINT ["/run.sh"] \ No newline at end of file