File size: 391 Bytes
ebb8326
 
 
 
 
bd21a9a
ebb8326
 
 
4f8c5b9
bd21a9a
 
 
ebb8326
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Dockerfile for Hugging Face Spaces
FROM python:3.11-slim

WORKDIR /app

# Copy application code first
COPY api.py .
COPY src/ ./src/

# Install dependencies LAST to force rebuild
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Expose port (HF Spaces uses port 7860)
EXPOSE 7860

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