From aea80435299988dd36d502ca8665d99e099535aa Mon Sep 17 00:00:00 2001
From: Niaz Faridani-Rad <faridani.rad@gmail.com>
Date: Sat, 26 Feb 2022 15:03:17 +0100
Subject: [PATCH] Do not cache wheels

---
 backend/base/Dockerfile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/backend/base/Dockerfile b/backend/base/Dockerfile
index ab03e7e..abac32d 100644
--- a/backend/base/Dockerfile
+++ b/backend/base/Dockerfile
@@ -47,8 +47,6 @@ RUN apt-get update && \
 		libwebp-dev \
 		libxrender-dev \
 		pkg-config \ 
-		python3-dev \
-		python3-pip \
 		rustc \ 
 		libtinfo5 \
 		swig \
@@ -56,9 +54,9 @@ RUN apt-get update && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/*
     
-RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then pip3 install torch torchvision -f https://torch.kmtea.eu/whl/stable.html; else pip3 install torch torchvision; fi
+RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then pip3 install --no-cache-dir torch torchvision -f https://torch.kmtea.eu/whl/stable.html; else pip3 install --no-cache-dir torch torchvision; fi
 
-RUN pip3 install pyvips==2.1.15 cmake==3.21.2
+RUN pip3 install --no-cache-dir pyvips==2.1.15 cmake==3.21.2
 
 #Build and install libraw
 WORKDIR /tmp/builds
-- 
GitLab