Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -12,8 +12,10 @@ RUN curl -L https://github.com/ggml-org/llama.cpp/releases/download/b8468/llama-
|
|
| 12 |
|
| 13 |
# Put everything in one flat directory so llama-server finds its .so backends
|
| 14 |
RUN mkdir -p /app/llama \
|
| 15 |
-
&& find /opt/llama
|
| 16 |
-
&& chmod +x /app/llama/llama-server
|
|
|
|
|
|
|
| 17 |
|
| 18 |
RUN useradd -m -u 1000 user
|
| 19 |
USER user
|
|
|
|
| 12 |
|
| 13 |
# Put everything in one flat directory so llama-server finds its .so backends
|
| 14 |
RUN mkdir -p /app/llama \
|
| 15 |
+
&& find /opt/llama \( -name "llama-server" -o -name "*.so*" \) -exec cp -a {} /app/llama/ \; \
|
| 16 |
+
&& chmod +x /app/llama/llama-server \
|
| 17 |
+
&& echo "/app/llama" > /etc/ld.so.conf.d/llama.conf \
|
| 18 |
+
&& ldconfig
|
| 19 |
|
| 20 |
RUN useradd -m -u 1000 user
|
| 21 |
USER user
|