Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.
|
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
|
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
|