File size: 547 Bytes
7d9087b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
008fd00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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 8501 --server.enableCORS false --server.enableXsrfProtection false