FROM python:3.9-slim WORKDIR /app COPY . /app RUN pip install --no-cache-dir -r requirements.txt # Port 7860 is mandatory for Hugging Face Spaces EXPOSE 7860 # 'app' refers to app.py, 'rental_price_predictor_api' is the variable name in your script CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:rental_price_predictor_api"]