mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Add system dependencies required by RapidOCR to fix Khoj Docker image (#842)
- Issue The Khoj docker build would fail with `ImportError: libGL.so.1: cannot open shared object file: No such file or directory`. This was required by the Khoj RapidOCR python package dependency. - Fix A minimal set of system packages have been added to resolve this issue.
This commit is contained in:
@@ -12,6 +12,9 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|||||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||||
RUN apt update && apt -y install yarn
|
RUN apt update && apt -y install yarn
|
||||||
|
|
||||||
|
# Install RapidOCR dependencies
|
||||||
|
RUN apt -y install libgl1 libgl1-mesa-glx libglib2.0-0
|
||||||
|
|
||||||
# Install Application
|
# Install Application
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY pyproject.toml .
|
COPY pyproject.toml .
|
||||||
|
|||||||
Reference in New Issue
Block a user