danielRamon commited on
Commit
dc22943
·
1 Parent(s): eee2a22

feat ✨: Add Ollama support.

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -3,6 +3,7 @@ WORKDIR /app
3
  COPY requirements.txt requirements.txt
4
  RUN pip install -r requirements.txt
5
  RUN apt update && apt -y upgrade && apt -y install curl
 
6
  RUN curl -fsSL https://ollama.com/install.sh | sh
7
  RUN ollama start & OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID
8
  EXPOSE 8501
 
3
  COPY requirements.txt requirements.txt
4
  RUN pip install -r requirements.txt
5
  RUN apt update && apt -y upgrade && apt -y install curl
6
+ ENV OLLAMA_HOME=/app/.ollama
7
  RUN curl -fsSL https://ollama.com/install.sh | sh
8
  RUN ollama start & OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID
9
  EXPOSE 8501