Remove separate requirements.txt and update Dockerfile to use pip install
This commit is contained in:
parent
03cd40d00d
commit
488028b9e2
3 changed files with 6 additions and 50 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -12,14 +12,15 @@ RUN apt-get update && apt-get install -y \
|
|||
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
|
||||
&& . $HOME/.cargo/env
|
||||
|
||||
# Copy only requirements files first to leverage Docker cache
|
||||
COPY requirements.txt .
|
||||
COPY lightrag/api/requirements.txt ./lightrag/api/
|
||||
# Copy pyproject.toml and source code for dependency installation
|
||||
COPY pyproject.toml .
|
||||
COPY setup.py .
|
||||
COPY lightrag/ ./lightrag/
|
||||
|
||||
# Install dependencies
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
RUN pip install --user --no-cache-dir -r requirements.txt
|
||||
RUN pip install --user --no-cache-dir -r lightrag/api/requirements.txt
|
||||
RUN pip install --user --no-cache-dir .
|
||||
RUN pip install --user --no-cache-dir .[api]
|
||||
|
||||
# Install depndencies for default storage
|
||||
RUN pip install --user --no-cache-dir nano-vectordb networkx
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
aiofiles
|
||||
ascii_colors
|
||||
asyncpg
|
||||
distro
|
||||
dotenv
|
||||
fastapi
|
||||
httpcore
|
||||
httpx
|
||||
jiter
|
||||
numpy
|
||||
openai
|
||||
passlib[bcrypt]
|
||||
pipmaster
|
||||
pydantic
|
||||
PyJWT
|
||||
python-dotenv
|
||||
python-jose[cryptography]
|
||||
python-multipart
|
||||
pytz
|
||||
pyuca
|
||||
tenacity
|
||||
tiktoken
|
||||
uvicorn
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
aiohttp
|
||||
configparser
|
||||
future
|
||||
|
||||
# Additional Packages for export Functionality
|
||||
pandas>=2.0.0
|
||||
|
||||
# Extra libraries are installed when needed using pipmaster
|
||||
|
||||
pipmaster
|
||||
pydantic
|
||||
python-dotenv
|
||||
|
||||
# Unicode Collation Algorithm for proper Chinese sorting
|
||||
pyuca
|
||||
|
||||
setuptools
|
||||
tenacity
|
||||
|
||||
# LLM packages
|
||||
tiktoken
|
||||
xlsxwriter>=3.1.0
|
||||
Loading…
Add table
Reference in a new issue