mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00: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 && \
|
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 && \
|
COPY . .
|
||||||
pip install git+https://github.com/khoj-ai/khoj.git
|
RUN sed -i 's/dynamic = \["version"\]/version = "0.0.0"/' pyproject.toml && \
|
||||||
|
pip install --no-cache-dir .
|
||||||
|
|
||||||
# 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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue