summaryrefslogtreecommitdiffstats
path: root/docker-files/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker-files/Dockerfile')
-rw-r--r--docker-files/Dockerfile25
1 files changed, 8 insertions, 17 deletions
diff --git a/docker-files/Dockerfile b/docker-files/Dockerfile
index b5eaeb2d..2a169c92 100644
--- a/docker-files/Dockerfile
+++ b/docker-files/Dockerfile
@@ -13,25 +13,16 @@ ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update && \
apt-get install -y \
- curl \
- gcc \
- lm-sensors \
- wireless-tools \
- iputils-ping && \
+ curl \
+ gcc \
+ lm-sensors \
+ wireless-tools \
+ iputils-ping && \
rm -rf /var/lib/apt/lists/*
-ARG VERSION
-## Install glances
-## If version is dev will use git checkout
-RUN if [ "$VERSION" = "dev" ] ; then \
- echo Installing dev branch of glances from git; \
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* ; \
- pip3 install psutil bottle ; \
- git clone -b develop https://github.com/nicolargo/glances.git ; \
- else \
- echo Installing glances from pip; \
- pip3 install glances[all]; \
- fi
+# Force rebuild otherwise it could be cached without rerun
+ARG VCS_REF
+RUN pip install glances[all]
# Define working directory.
WORKDIR /glances