Skip to content

Instantly share code, notes, and snippets.

@lucasduete
Created February 25, 2018 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasduete/9e8662124f5ba14cb57b4f287188446f to your computer and use it in GitHub Desktop.
Save lucasduete/9e8662124f5ba14cb57b4f287188446f to your computer and use it in GitHub Desktop.
Dockerfile for create image with NtopNG updated using docker
FROM ubuntu:16.04
LABEL maintainer="lm.duete@bol.com.br"
RUN apt-get update
RUN apt-get -y -q install curl lsb-release
RUN curl -s --remote-name http://packages.ntop.org/apt-stable/16.04/all/apt-ntop-stable.deb
RUN dpkg -i apt-ntop-stable.deb
RUN rm -rf apt-ntop-stable.deb
RUN apt-get update
RUN apt-get -y -q install ntopng redis-server libpcap0.8
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get -y autoremove
EXPOSE 3000
RUN echo '#!/bin/bash\n/etc/init.d/redis-server start\nntopng "$@"' > /tmp/run.sh
RUN chmod +x /tmp/run.sh
ENTRYPOINT ["/tmp/run.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment