Spaces:
Sleeping
Sleeping
Commit
·
0479a6d
1
Parent(s):
c4e4ff2
feat ✨: Increase OLLAMA service startup timeout.
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ RUN pip install -r requirements.txt
|
|
4 |
RUN apt update && apt -y upgrade && apt -y install curl
|
5 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
6 |
RUN mkdir -p /root/.ollama/id_ed25519 && chmod 755 /root/.ollama/id_ed25519
|
7 |
-
RUN ollama start & sleep
|
8 |
EXPOSE 8501
|
9 |
COPY streamlit_app.py generate_players.py resources/* ./
|
10 |
-
CMD ollama start & sleep
|
|
|
4 |
RUN apt update && apt -y upgrade && apt -y install curl
|
5 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
6 |
RUN mkdir -p /root/.ollama/id_ed25519 && chmod 755 /root/.ollama/id_ed25519
|
7 |
+
RUN ollama start & sleep 10 ; OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID
|
8 |
EXPOSE 8501
|
9 |
COPY streamlit_app.py generate_players.py resources/* ./
|
10 |
+
CMD ollama start & sleep 10 ; streamlit run streamlit_app.py
|