akra35567 commited on
Commit
cecf722
·
verified ·
1 Parent(s): 6e90380

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ollama/ollama:latest
2
+
3
+ EXPOSE 7860
4
+ EXPOSE 11434
5
+
6
+ RUN ollama pull qwen2.5:7b
7
+
8
+ COPY app.py /app/app.py
9
+ COPY requirements.txt /app/requirements.txt
10
+ WORKDIR /app
11
+
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
15
+ CMD curl -f http://localhost:7860/health || exit 1
16
+
17
+ CMD ["python", "app.py"]