2017-05-21 03:01:03 +02:00
|
|
|
#
|
2017-05-21 04:04:05 +02:00
|
|
|
# Dockerfile for glances
|
2017-05-21 03:01:03 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
FROM debian:jessie
|
2017-05-21 04:04:05 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2017-05-21 03:01:03 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get -y install build-essential \
|
|
|
|
curl \
|
2017-05-21 04:04:05 +02:00
|
|
|
libfreetype6 \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libpng12-0 \
|
|
|
|
libpng12-dev \
|
2017-05-21 03:01:03 +02:00
|
|
|
lm-sensors \
|
2017-05-21 04:04:05 +02:00
|
|
|
pkg-config \
|
2017-05-21 03:01:03 +02:00
|
|
|
python \
|
|
|
|
python-dev \
|
|
|
|
wireless-tools \
|
|
|
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
|
2021-07-01 21:32:49 +02:00
|
|
|
&& pip install --no-cache-dir "glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]" \
|
2017-05-21 03:01:03 +02:00
|
|
|
&& apt-get remove -y build-essential \
|
|
|
|
curl \
|
2017-05-21 04:04:05 +02:00
|
|
|
libfreetype6-dev \
|
|
|
|
libpng12-dev \
|
|
|
|
pkg-config \
|
2017-05-21 03:01:03 +02:00
|
|
|
python-dev \
|
2017-05-21 09:19:29 +02:00
|
|
|
&& rm -rf /root/.cache/pip /var/lib/apt/lists/*
|
2017-05-21 03:01:03 +02:00
|
|
|
|
2017-05-21 11:35:36 +02:00
|
|
|
VOLUME /etc/glances
|
|
|
|
WORKDIR /etc/glances
|
2017-05-21 03:01:03 +02:00
|
|
|
|
|
|
|
EXPOSE 61208
|
|
|
|
EXPOSE 61209
|
|
|
|
|
|
|
|
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
|