File size: 395 Bytes
804919e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10-slim

WORKDIR /app

# Copy requirements first (better layer caching)
COPY requirements.txt .

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

# Copy app files
COPY app_enhanced.py .
COPY config.py .
COPY artifacts/ ./artifacts/

# Hugging Face uses port 7860
EXPOSE 7860

CMD ["bash", "-lc", "uvicorn app_enhanced:app --host 0.0.0.0 --port ${PORT:-7860}"]