CKPillai commited on
Commit
a28de0a
·
verified ·
1 Parent(s): 5133418

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/*
4
+
5
+ RUN pip install --no-cache-dir "llama-cpp-python[server]"
6
+
7
+ RUN mkdir -p /models && \
8
+ curl -L -o /models/tinyllama.gguf \
9
+ https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
10
+
11
+ ENV PORT=7860
12
+ EXPOSE 7860
13
+
14
+ CMD ["python","-m","llama_cpp.server","--model","/models/tinyllama.gguf","--host","0.0.0.0","--port","7860"]