# 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"]