organathf3 commited on
Commit
1f71a43
·
verified ·
1 Parent(s): 454a310

feat: AIO Ollama inference node with Gradio health UI

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # Install minimal deps (no Ollama in build — download at runtime)
6
+ RUN apt-get update && apt-get install -y \
7
+ curl \
8
+ zstd \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python dependencies
12
+ RUN pip install --no-cache-dir \
13
+ gradio \
14
+ httpx
15
+
16
+ # Copy startup script and app
17
+ COPY startup.sh /startup.sh
18
+ COPY app.py /app.py
19
+ RUN chmod +x /startup.sh
20
+
21
+ EXPOSE 7860
22
+
23
+ CMD ["/startup.sh"]