Spaces:
Sleeping
Sleeping
Commit
·
b129c8d
1
Parent(s):
0b9c2ff
chore 📦: Improved Dockerfile for Ollama and Streamlit app.
Browse files- Dockerfile +2 -2
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 |
-
RUN ollama start &
|
8 |
EXPOSE 8501
|
9 |
COPY streamlit_app.py generate_players.py resources/* ./
|
10 |
-
|
|
|
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
|
8 |
EXPOSE 8501
|
9 |
COPY streamlit_app.py generate_players.py resources/* ./
|
10 |
+
CMD ollama start & streamlit run streamlit_app.py
|