summaryrefslogtreecommitdiffstats
path: root/docker-files/master/Dockerfile
blob: f4d55d9d0b57324f202dcaed38c73a2772f3164a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Glances Dockerfile (based on Ubuntu)
#
# https://github.com/nicolargo/glances
#

# Pull base image.
FROM ubuntu:20.04

# Install Glances (develop branch)
RUN apt-get update && apt-get -y install curl iputils-ping && rm -rf /var/lib/apt/lists/*
RUN curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | /bin/bash && rm -rf /var/lib/apt/lists/*


# Define working directory.
WORKDIR /glances

# EXPOSE PORT (For XMLRPC)
EXPOSE 61209

# EXPOSE PORT (For Web UI)
EXPOSE 61208

# Define default command.
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT