File size: 427 Bytes
b9b23d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6970065
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Dockerfile (public proxy)
FROM python:3.11-slim

WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

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

# Copy code
COPY main.py .

# Hugging Face expects the app to listen on port 7860
ENV PORT=7860
EXPOSE 7860

# Launch FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]