From f84d604a228acbe88ddeb719883f2e29cc38f74a Mon Sep 17 00:00:00 2001
From: Peter Dave Hello <hsu@peterdavehello.org>
Date: Mon, 4 Sep 2023 20:19:28 +0800
Subject: [PATCH] Use `pip install` with `--no-cache-dir` inside Docker (#939)

---
 Dockerfile.py310 | 4 ++--
 Dockerfile.py311 | 4 ++--
 Dockerfile.py36  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Dockerfile.py310 b/Dockerfile.py310
index fff91576..161c1603 100644
--- a/Dockerfile.py310
+++ b/Dockerfile.py310
@@ -34,7 +34,7 @@
 FROM python:3.10-buster
 RUN apt-get update && \
     apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
-RUN pip install dbus-python PyGObject
+RUN pip install --no-cache-dir dbus-python PyGObject
 
 # Apprise Setup
 VOLUME ["/apprise"]
@@ -44,7 +44,7 @@ COPY dev-requirements.txt /
 ENV PYTHONPATH /apprise
 ENV PYTHONPYCACHEPREFIX /apprise/__pycache__/py310
 
-RUN pip install -r /requirements.txt -r /dev-requirements.txt
+RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt
 
 RUN addgroup --gid ${USER_GID:-1000} apprise
 RUN adduser --system --uid ${USER_UID:-1000} --ingroup apprise --home /apprise --no-create-home --disabled-password apprise
diff --git a/Dockerfile.py311 b/Dockerfile.py311
index 7cf4c6d2..e45c40c6 100644
--- a/Dockerfile.py311
+++ b/Dockerfile.py311
@@ -34,7 +34,7 @@
 FROM python:3.11-buster
 RUN apt-get update && \
     apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
-RUN pip install dbus-python PyGObject
+RUN pip install --no-cache-dir dbus-python PyGObject
 
 # Apprise Setup
 VOLUME ["/apprise"]
@@ -44,7 +44,7 @@ COPY dev-requirements.txt /
 ENV PYTHONPATH /apprise
 ENV PYTHONPYCACHEPREFIX /apprise/__pycache__/py311
 
-RUN pip install -r /requirements.txt -r /dev-requirements.txt
+RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt
 
 RUN addgroup --gid ${USER_GID:-1000} apprise
 RUN adduser --system --uid ${USER_UID:-1000} --ingroup apprise --home /apprise --no-create-home --disabled-password apprise
diff --git a/Dockerfile.py36 b/Dockerfile.py36
index a96d1e08..1ff92ff6 100644
--- a/Dockerfile.py36
+++ b/Dockerfile.py36
@@ -34,7 +34,7 @@
 FROM python:3.6-buster
 RUN apt-get update && \
     apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
-RUN pip install dbus-python PyGObject
+RUN pip install --no-cache-dir dbus-python PyGObject
 
 # Apprise Setup
 VOLUME ["/apprise"]
@@ -45,4 +45,4 @@ ENV PYTHONPATH /apprise
 ENV PYTHONPYCACHEPREFIX /apprise/__pycache__/py36
 
 
-RUN pip install -r /requirements.txt -r /dev-requirements.txt
+RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt