Install Khoj on Docker from local app instead of pulling from github

Just use a random static version for Khoj on the Docker as otherwise
the hatch vcs dynamic versioning requires the .git directory in the
docker image too
This commit is contained in:
Debanjum Singh Solanky 2023-07-11 00:41:05 -07:00
parent 802472cd99
commit 6308388dfc

View file

@ -7,7 +7,9 @@ RUN apt update -y && \
apt -y install python3-pip python3-pyqt6 git apt -y install python3-pip python3-pyqt6 git
# Install Application # Install Application
RUN pip install --no-cache-dir git+https://github.com/khoj-ai/khoj.git COPY . .
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,