2015-11-27 12:53:32 +03:00
|
|
|
#
|
|
|
|
# Glances Dockerfile
|
|
|
|
#
|
|
|
|
# https://github.com/nicolargo/glances
|
|
|
|
#
|
|
|
|
|
|
|
|
# Pull base image.
|
|
|
|
FROM ubuntu
|
|
|
|
|
|
|
|
# Install Glances (develop branch)
|
2017-01-24 12:19:09 +03:00
|
|
|
RUN apt-get update && apt-get -y install curl && rm -rf /var/lib/apt/lists/*
|
2016-10-26 21:34:14 +03:00
|
|
|
RUN curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | /bin/bash && rm -rf /var/lib/apt/lists/*
|
2016-09-19 17:24:32 +03:00
|
|
|
|
2015-11-27 12:53:32 +03:00
|
|
|
|
|
|
|
# Define working directory.
|
|
|
|
WORKDIR /glances
|
|
|
|
|
2015-11-27 13:06:31 +03:00
|
|
|
# EXPOSE PORT (For XMLRPC)
|
|
|
|
EXPOSE 61209
|
|
|
|
|
|
|
|
# EXPOSE PORT (For Web UI)
|
|
|
|
EXPOSE 61208
|
|
|
|
|
2015-11-27 12:53:32 +03:00
|
|
|
# Define default command.
|
2016-05-27 14:28:51 +03:00
|
|
|
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
|