Spaces:
Sleeping
Sleeping
File size: 492 Bytes
5ca6907 0c3809f eee2a22 5ca6907 b129c8d |
1 2 3 4 5 6 7 8 9 10 11 |
FROM python:3.10-slim-bullseye
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN apt update && apt -y upgrade && apt -y install curl
RUN curl -fsSL https://ollama.com/install.sh | sh
RUN mkdir -p /root/.ollama/id_ed25519 && chmod 755 /root/.ollama/id_ed25519
RUN ollama start & OLLAMA_PID=$! ; ollama pull gemma2 ; kill $OLLAMA_PID
EXPOSE 8501
COPY streamlit_app.py generate_players.py resources/* ./
CMD ollama start & streamlit run streamlit_app.py |