Reduce Khoj Docker image size by 2Gb by not caching pip packages

Resolve #148
This commit is contained in:
Debanjum Singh Solanky 2023-07-10 23:27:02 -07:00
parent f664a74e77
commit 802472cd99

View file

@ -6,9 +6,8 @@ LABEL org.opencontainers.image.source https://github.com/khoj-ai/khoj
RUN apt update -y && \ RUN apt update -y && \
apt -y install python3-pip python3-pyqt6 git apt -y install python3-pip python3-pyqt6 git
# Install Python Dependencies # Install Application
RUN pip install --upgrade pip && \ RUN pip install --no-cache-dir git+https://github.com/khoj-ai/khoj.git
pip install git+https://github.com/khoj-ai/khoj.git
# Run the Application # Run the Application
# There are more arguments required for the application to run, # There are more arguments required for the application to run,