Entz commited on
Commit
d11f996
·
verified ·
1 Parent(s): 63cbcdb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.11-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
@@ -23,5 +23,5 @@ COPY app.py .
23
  # Expose the Streamlit port
24
  EXPOSE 8501
25
 
26
- # Start Ollama in the background and then run Streamlit
27
- CMD ollama serve & streamlit run app.py --server.port 8501 --server.address 0.0.0.0
 
1
  # Use an official Python runtime as a parent image
2
+ FROM python:3.10-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
 
23
  # Expose the Streamlit port
24
  EXPOSE 8501
25
 
26
+ # Start Ollama in the background, wait 5 seconds, then run Streamlit
27
+ CMD ollama serve & sleep 5 && streamlit run app.py --server.port 8501 --server.address 0.0.0.0