Created
February 25, 2018 06:33
-
-
Save lucasduete/9e8662124f5ba14cb57b4f287188446f to your computer and use it in GitHub Desktop.
Dockerfile for create image with NtopNG updated using docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
LABEL maintainer="[email protected]" | |
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