xTHExBEASTx commited on
Commit
a8607e5
·
verified ·
1 Parent(s): 58aa998

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,9 +1,16 @@
1
  FROM ollama/ollama:latest
2
 
3
- # Pre-load the model during build so it's ready instantly
4
- RUN ollama serve & sleep 5 && ollama pull qwen2.5-coder:7b
 
5
 
6
- # Expose the Ollama port
 
 
 
 
7
  EXPOSE 11434
 
8
 
9
- ENTRYPOINT ["ollama", "serve"]
 
 
1
  FROM ollama/ollama:latest
2
 
3
+ # Install Python and FastAPI
4
+ RUN apt-get update && apt-get install -y python3 python3-pip
5
+ RUN pip3 install fastapi uvicorn
6
 
7
+ # Copy your app script
8
+ COPY app.py /app/app.py
9
+ WORKDIR /app
10
+
11
+ # Expose both ports (Ollama and HF Health Check)
12
  EXPOSE 11434
13
+ EXPOSE 7860
14
 
15
+ # Run the script that handles everything
16
+ CMD ["python3", "app.py"]