srmsoumya commited on
Commit
e753721
·
1 Parent(s): d688b0d

fix: register llama shared libs with ldconfig and LD_LIBRARY_PATH

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -8,7 +8,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8
 
9
  # Copy llama-server binary and backend .so files (must stay together)
10
  COPY --from=llama /app /usr/local/lib/llama
11
- RUN ln -s /usr/local/lib/llama/llama-server /usr/local/bin/llama-server
 
 
 
 
12
 
13
  # HF Spaces requires UID 1000
14
  RUN useradd -m -u 1000 user
 
8
 
9
  # Copy llama-server binary and backend .so files (must stay together)
10
  COPY --from=llama /app /usr/local/lib/llama
11
+ RUN ln -s /usr/local/lib/llama/llama-server /usr/local/bin/llama-server \
12
+ && echo /usr/local/lib/llama > /etc/ld.so.conf.d/llama.conf \
13
+ && ldconfig
14
+
15
+ ENV LD_LIBRARY_PATH=/usr/local/lib/llama
16
 
17
  # HF Spaces requires UID 1000
18
  RUN useradd -m -u 1000 user