Spaces:
Running
Running
# Use an official Python image | |
FROM python:3.10 | |
# Install dependencies | |
RUN apt-get update && apt-get install -y curl | |
# Install Ollama | |
RUN curl -fsSL https://ollama.com/install.sh | sh | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy app files | |
COPY . . | |
# Expose Ollama API port | |
EXPOSE 11434 | |
# Start Ollama in the background | |
RUN ollama pull deepseek-r1:1.5b | |
CMD ollama serve & streamlit run app.py --server.port 7860 --server.enableCORS false --server.enableXsrfProtection false | |