feat: modify base dependencies + remove unnecessary packages in lite docker (#310)

* feat: update base/adv dependencies

* feat: update Dockerfile

* ci: update free disk for docker build
This commit is contained in:
Khoi-Nguyen Nguyen-Ngoc
2024-09-21 12:11:58 +07:00
committed by GitHub
parent d6a9510441
commit a865e2b095
3 changed files with 31 additions and 30 deletions

View File

@@ -34,7 +34,7 @@ COPY . /app
# Install pip packages
RUN --mount=type=ssh \
--mount=type=cache,target=/root/.cache/pip \
pip install -e "libs/kotaemon[all]" \
pip install -e "libs/kotaemon" \
&& pip install -e "libs/ktem" \
&& pip install graphrag future \
&& pip install "pdfservices-sdk@git+https://github.com/niallcm/pdfservices-python-sdk.git@bump-and-unfreeze-requirements"
@@ -72,7 +72,8 @@ COPY . /app
# Install additional pip packages
RUN --mount=type=ssh \
--mount=type=cache,target=/root/.cache/pip \
pip install unstructured[all-docs]
pip install -e "libs/kotaemon[adv]" \
&& pip install unstructured[all-docs]
# Clean up
RUN apt-get autoremove \