File size: 515 Bytes
c51053c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.9-slim

# Install system dependencies
RUN apt-get update && apt-get install -y curl build-essential

# Install Ollama
RUN curl -L https://ollama.ai/download/ollama-linux-amd64 -o /usr/bin/ollama \
    && chmod +x /usr/bin/ollama

# Set up application environment
WORKDIR /app
COPY . .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Start Ollama service and Streamlit app
CMD sh -c "ollama serve & streamlit run app.py --server.port $PORT --server.address 0.0.0.0"