Spaces:
Sleeping
Sleeping
Commit
·
ee0f4db
1
Parent(s):
e0ac97c
fix : /.ollama permissions
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ 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 |
-
|
| 8 |
RUN ollama start & OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID
|
| 9 |
EXPOSE 8501
|
| 10 |
COPY streamlit_app.py generate_players.py resources/* ./
|
|
|
|
| 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 mkdir -p /.ollama && chmod 755 /.ollama
|
| 8 |
RUN ollama start & OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID
|
| 9 |
EXPOSE 8501
|
| 10 |
COPY streamlit_app.py generate_players.py resources/* ./
|