File size: 507 Bytes
843d0a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6665a4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.9-slim

WORKDIR /code

# Install system dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

# Copy requirements
COPY requirements_simple.txt requirements.txt

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

# Copy application files
COPY simple_api.py api.py
COPY allsides_data.csv .
COPY blacklist.csv .

# Expose port
EXPOSE 7860

# Start the API server
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]