File size: 385 Bytes
b2dbbbf
 
08f13c5
b2dbbbf
08f13c5
 
b2dbbbf
 
 
08f13c5
b2dbbbf
 
08f13c5
b2dbbbf
08f13c5
 
b2dbbbf
08f13c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 1. Base image
FROM python:3.9-slim

# 2. Set workdir
WORKDIR /app

# 3. Install dependencies from requirements.txt
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# 4. Copy application code + CSV data
COPY app.py equiparazioni.csv ./

# 5. Expose HF Spaces port
EXPOSE 7860

# 6. Start the app
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]