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

WORKDIR /app

COPY . /app/

RUN pip install --no-cache-dir -r requirements.txt

# Make port 7860 available (Hugging Face Spaces uses this port)
EXPOSE 7860

# Set environment variables
ENV PORT=7860
ENV HOST=0.0.0.0

# Run the application
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]