sonygod commited on
Commit
388f960
·
1 Parent(s): aa911b2
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -17,6 +17,7 @@ RUN pip3 install --no-cache-dir -r requirements.txt
17
  EXPOSE 7860 11434
18
 
19
  # Run Ollama and FastAPI app
20
- CMD ollama serve & sleep 5 && \
21
- ollama pull gemma:2b && \
22
- python3 -m uvicorn app:app --host 0.0.0.0 --port 7860
 
 
17
  EXPOSE 7860 11434
18
 
19
  # Run Ollama and FastAPI app
20
+ ...existing code...
21
+
22
+ # Run Ollama and FastAPI app
23
+ CMD ["sh", "-c", "ollama serve & sleep 5 && ollama pull gemma:2b && python3 -m uvicorn app:app --host 0.0.0.0 --port 7860"]