summaryrefslogtreecommitdiffstats
path: root/docker-files/dev.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker-files/dev.Dockerfile')
-rw-r--r--docker-files/dev.Dockerfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/docker-files/dev.Dockerfile b/docker-files/dev.Dockerfile
new file mode 100644
index 00000000..9fbf7924
--- /dev/null
+++ b/docker-files/dev.Dockerfile
@@ -0,0 +1,39 @@
+#
+# Glances Dockerfile (based on Ubuntu)
+#
+# https://github.com/nicolargo/glances
+#
+
+ARG ARCH=
+FROM ${ARCH}python:3-buster
+
+# Install package
+# Must used calibre package to be able to run external module
+ENV DEBIAN_FRONTEND noninteractive
+RUN \
+ apt-get update && \
+ apt-get install -y \
+ curl \
+ gcc \
+ git \
+ lm-sensors \
+ wireless-tools \
+ iputils-ping && \
+ rm -rf /var/lib/apt/lists/*
+
+RUN pip install psutil bottle
+
+# Define working directory
+WORKDIR /glances
+
+COPY *requirements.txt .
+
+RUN CASS_DRIVER_NO_CYTHON=1 pip install -r optional-requirements.txt
+
+COPY . /glances
+
+# EXPOSE PORT (XMLRPC / WebUI)
+EXPOSE 61209 61208
+
+# Define default command.
+CMD python3 -m glances -C /glances/conf/glances.conf $GLANCES_OPT