cloudunity commited on
Commit
f9fed36
·
verified ·
1 Parent(s): 2375831

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y wget build-essential && rm -rf /var/lib/apt/lists/*
4
+
5
+ RUN pip install --no-cache-dir llama-cpp-python[server] huggingface_hub
6
+
7
+ RUN wget https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/resolve/main/gemma-2-2b-it-Q4_K_M.gguf -O /model.gguf
8
+
9
+ ENV HOST=0.0.0.0
10
+ ENV PORT=7860
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["python3", "-m", "llama_cpp.server", "--model", "/model.gguf", "--host", "0.0.0.0", "--port", "7860", "--n_ctx", "4096"]