mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Fix libmusl error using pre-built llama-cpp-python wheel via Docker
Seems like llama-cpp-python pre-built wheels need libmusl. Otherwise you run into runtime errors on Khoj startup via Docker.
This commit is contained in:
@@ -10,6 +10,8 @@ RUN apt update -y && apt -y install \
|
|||||||
python3-pip \
|
python3-pip \
|
||||||
swig \
|
swig \
|
||||||
curl \
|
curl \
|
||||||
|
# Required by llama-cpp-python pre-built wheels. See #1628
|
||||||
|
musl-dev \
|
||||||
# Required by RapidOCR
|
# Required by RapidOCR
|
||||||
libgl1 \
|
libgl1 \
|
||||||
libglx-mesa0 \
|
libglx-mesa0 \
|
||||||
@@ -19,7 +21,9 @@ RUN apt update -y && apt -y install \
|
|||||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
||||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
|
||||||
apt update -y && apt -y --no-install-recommends install nodejs yarn && \
|
apt update -y && apt -y --no-install-recommends install nodejs yarn && \
|
||||||
apt clean && rm -rf /var/lib/apt/lists/*
|
apt clean && rm -rf /var/lib/apt/lists/* && \
|
||||||
|
# Required by llama-cpp-python pre-built wheels. See #1628
|
||||||
|
ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
|
||||||
|
|
||||||
# Install Application
|
# Install Application
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user