danielRamon commited on
Commit
84bdc62
·
1 Parent(s): aabb68e

feat ✨: Add OLLAMA_PID management and copy config files.

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -3,7 +3,8 @@ 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 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
 
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
7
+ COPY /root/.ollama/ /.ollama
8
  EXPOSE 8501
9
  COPY streamlit_app.py generate_players.py resources/* ./
10
  CMD ollama start & sleep 10 ; streamlit run streamlit_app.py