File size: 337 Bytes
eb7c4fc
 
 
 
 
 
 
 
 
 
 
 
 
 
0996d23
eb7c4fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10-slim

WORKDIR /app

# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY . .

# Make port 7860 available (Hugging Face default)
ENV PORT=7860

# Run the application using gunicorn
CMD gunicorn --bind 0.0.0.0:${PORT} app:app