File size: 328 Bytes
60e9d75
d55fbc6
 
 
60e9d75
 
 
 
d55fbc6
 
 
 
60e9d75
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

WORKDIR /app

ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1

COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .

EXPOSE 7860

# Hugging Face Spaces sets PORT; default 7860 for local Docker
CMD exec gunicorn --bind "0.0.0.0:${PORT:-7860}" --workers 1 --threads 4 --timeout 120 "app:app"