danielRamon commited on
Commit
aabb68e
·
1 Parent(s): 0479a6d

fix 🐛: Fix bug in OLLAMA command sequence.

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -3,8 +3,7 @@ COPY requirements.txt requirements.txt
3
  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 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
 
3
  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 ollama start & sleep 10 ; OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID ; chmod 755 /root/.ollama/id_ed25519
 
7
  EXPOSE 8501
8
  COPY streamlit_app.py generate_players.py resources/* ./
9
  CMD ollama start & sleep 10 ; streamlit run streamlit_app.py