summaryrefslogtreecommitdiffstats
path: root/docker-files
diff options
context:
space:
mode:
Diffstat (limited to 'docker-files')
-rw-r--r--docker-files/debian.Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker-files/debian.Dockerfile b/docker-files/debian.Dockerfile
index f9f1777a..da80e309 100644
--- a/docker-files/debian.Dockerfile
+++ b/docker-files/debian.Dockerfile
@@ -19,7 +19,11 @@ RUN apt-get update && \
FROM build as remoteInstall
-# Force rebuild otherwise it could be cached without rerun
+# Install the dependencies beforehand to make them cacheable
+COPY requirements.txt .
+RUN pip3 install --no-cache-dir --user -r requirements.txt
+
+# Force install otherwise it could be cached without rerun
ARG CHANGING_ARG
RUN pip3 install --no-cache-dir --user glances[all]