From 64f876a7f6d5ace78f761baa0b722a32d2cc701a Mon Sep 17 00:00:00 2001 From: tabledevil Date: Thu, 30 Nov 2023 09:13:35 +0100 Subject: [PATCH] Improved PIP Config to not cache any files --- Dockerfile | 5 ++++- pip.conf | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 pip.conf diff --git a/Dockerfile b/Dockerfile index 559c3bc..7dc85b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,10 +37,13 @@ RUN apt-get update && apt-get install -y \ ; \ rm -rf /var/lib/apt/lists/* +# Configure PIP +ENV PYTHONDONTWRITEBYTECODE=1 +ADD pip.conf /etc/pip.conf + # OLETOOLS & DIDIERSTEVENS RUN git clone https://github.com/DidierStevens/DidierStevensSuite /opt/didierstevenssuite RUN chmod +x /opt/didierstevenssuite/*py - RUN python3 -m pip install --upgrade pip RUN python3 -m pip install psutil unotools oletools diff --git a/pip.conf b/pip.conf new file mode 100644 index 0000000..b3f5298 --- /dev/null +++ b/pip.conf @@ -0,0 +1,5 @@ +[install] +compile = no + +[global] +no-cache-dir = True