File size: 404 Bytes
071e1f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use a minimal Python image
FROM python:3.10-slim

# Install Flask, requests, and Gunicorn
RUN pip install --no-cache-dir flask requests gunicorn

# Set working directory
WORKDIR /app

# Copy application code
COPY app.py /app/app.py

# Expose port 7860 (required by Hugging Face Spaces)
EXPOSE 7860

# Run via Gunicorn for production‐ready serving
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]