2015-11-27 12:53:32 +03:00
|
|
|
#
|
|
|
|
# Glances Dockerfile
|
|
|
|
#
|
|
|
|
# https://github.com/nicolargo/glances
|
|
|
|
#
|
|
|
|
|
|
|
|
# Pull base image.
|
|
|
|
FROM ubuntu
|
|
|
|
|
|
|
|
# Install Glances (develop branch)
|
|
|
|
RUN apt-get -y install curl && \
|
|
|
|
curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install-develop.sh | /bin/bash
|
|
|
|
|
|
|
|
# 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.
|
2015-11-27 13:31:41 +03:00
|
|
|
CMD python -m glances $GLANCES_OPT
|