Nguyen5 commited on
Commit
27df079
·
1 Parent(s): 24a527f
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile – HuggingFace Space (Docker + Ollama + Python)
2
+
3
+ FROM ollama/ollama:latest
4
+
5
+ # ==== System + Python ====
6
+ RUN apt-get update && apt-get install -y \
7
+ python3 python3-pip python3-venv \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /workspace
11
+
12
+ # ==== Python deps ====
13
+ COPY requirements.txt .
14
+ RUN pip3 install --no-cache-dir -r requirements.txt
15
+
16
+ # ==== App code ====
17
+ COPY . .
18
+
19
+ # Ollama server listen on all interfaces
20
+ ENV OLLAMA_HOST=0.0.0.0
21
+
22
+ EXPOSE 7860
23
+
24
+ CMD ["bash", "start.sh"]