LH-Tech-AI commited on
Commit
fe5189f
·
verified ·
1 Parent(s): f47f220

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -2,16 +2,19 @@ FROM ubuntu:24.04
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y curl unzip libgomp1 && rm -rf /var/lib/apt/lists/*
6
 
7
  RUN curl -L -o llama.tar.gz https://github.com/ggml-org/llama.cpp/releases/download/b8469/llama-b8469-bin-ubuntu-x64.tar.gz \
8
  && tar -xzf llama.tar.gz \
9
  && rm llama.tar.gz \
10
- && find . -name "llama-server" -exec chmod +x {} \; \
11
- && find . -name "llama-server" | head -1 | xargs -I{} cp {} ./llama-server
 
12
 
13
  RUN curl -L -o apex.gguf "https://huggingface.co/LH-Tech-AI/Apex-1.6-Instruct-350M/resolve/main/apex_1.6.gguf"
14
 
 
 
15
  EXPOSE 7860
16
 
17
- CMD ["sh", "-c", "LD_LIBRARY_PATH=/app:$LD_LIBRARY_PATH ./llama-server -m apex.gguf --host 0.0.0.0 --port 7860 -c 2048"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y curl libgomp1 && rm -rf /var/lib/apt/lists/*
6
 
7
  RUN curl -L -o llama.tar.gz https://github.com/ggml-org/llama.cpp/releases/download/b8469/llama-b8469-bin-ubuntu-x64.tar.gz \
8
  && tar -xzf llama.tar.gz \
9
  && rm llama.tar.gz \
10
+ && find . -name "*.so*" -exec cp {} /app/ \; \
11
+ && find . -name "llama-server" -exec cp {} /app/ \; \
12
+ && chmod +x /app/llama-server
13
 
14
  RUN curl -L -o apex.gguf "https://huggingface.co/LH-Tech-AI/Apex-1.6-Instruct-350M/resolve/main/apex_1.6.gguf"
15
 
16
+ ENV LD_LIBRARY_PATH=/app
17
+
18
  EXPOSE 7860
19
 
20
+ CMD ["./llama-server", "-m", "apex.gguf", "--host", "0.0.0.0", "--port", "7860", "-c", "2048"]