diff --git a/Dockerfile b/Dockerfile index f5d44bd3..619ec1ad 100644 --- a/Dockerfile +++ b/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 diff --git a/lightrag/api/requirements.txt b/lightrag/api/requirements.txt deleted file mode 100644 index 808f95b5..00000000 --- a/lightrag/api/requirements.txt +++ /dev/null @@ -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 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 3161337a..00000000 --- a/requirements.txt +++ /dev/null @@ -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