mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01: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:
commit
0b1b262512
1 changed files with 3 additions and 0 deletions
|
@ -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 .
|
||||||
|
|
Loading…
Reference in a new issue