File size: 319 Bytes
41831f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Dockerfile for the API server that uses Ollama

FROM python:3.10-slim

WORKDIR /app

# Install dependencies
COPY requirements_local.txt .
RUN pip install --no-cache-dir -r requirements_local.txt

# Copy application
COPY app_ollama.py .

# Expose port
EXPOSE 8000

# Run the API server
CMD ["python", "app_ollama.py"]