From 802472cd99c46c947370cbb4f731ee0990511f5e Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Mon, 10 Jul 2023 23:27:02 -0700 Subject: [PATCH] Reduce Khoj Docker image size by 2Gb by not caching pip packages Resolve #148 --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4d1cb525..f160cb1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,8 @@ LABEL org.opencontainers.image.source https://github.com/khoj-ai/khoj RUN apt update -y && \ apt -y install python3-pip python3-pyqt6 git -# Install Python Dependencies -RUN pip install --upgrade pip && \ - pip install git+https://github.com/khoj-ai/khoj.git +# Install Application +RUN pip install --no-cache-dir git+https://github.com/khoj-ai/khoj.git # Run the Application # There are more arguments required for the application to run,