File size: 368 Bytes
ab422e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11-slim

# Set workdir
WORKDIR /app

# Copy requirements trước để cache
COPY requirements.txt .

# Cài dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy toàn bộ code
COPY . .

# Expose port (HuggingFace cần lắng nghe ở $PORT)
ENV PORT=7860

# Run app với gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]