From fcf042ab8baa8b3940fd6b969225109e3485739b Mon Sep 17 00:00:00 2001 From: Ricardo Bartels Date: Sat, 13 Jul 2024 11:29:08 +0200 Subject: [PATCH] removes python cache files from docker container builds --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3239048..98698ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ COPY fritzinfluxdb /app/fritzinfluxdb # Install any needed packages specified in requirements.txt RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ && \ - pip install --trusted-host pypi.python.org -r requirements.txt && \ + PYTHONDONTWRITEBYTECODE=1 pip install --no-compile --no-cache-dir -r requirements.txt && \ apt-get remove --yes gcc g++ && \ apt-get clean autoclean && \ apt-get autoremove --yes && \