mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Reduce size of Docker image and build it from local code
- Improvements - Install Khoj on Docker from local code instead of pulling from Github - Reduce Khoj Docker image size by 2Gb by not caching installed pip packages. Refer [issue comment](https://github.com/khoj-ai/khoj/issues/148#issuecomment-1627443570)
This commit is contained in:
commit
83ed8561ee
1 changed files with 4 additions and 3 deletions
|
@ -6,9 +6,10 @@ 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
|
||||
COPY . .
|
||||
RUN sed -i 's/dynamic = \["version"\]/version = "0.0.0"/' pyproject.toml && \
|
||||
pip install --no-cache-dir .
|
||||
|
||||
# Run the Application
|
||||
# There are more arguments required for the application to run,
|
||||
|
|
Loading…
Reference in a new issue