FROM python:3.9-slim # Set working directory WORKDIR /app # Copy backend files into container COPY . . # Install dependencies RUN pip install --no-cache-dir --upgrade -r requirements.txt # Start the SmartKart API using Gunicorn # -w 4 → 4 worker processes # -b 0.0.0.0:7860 → required port for Hugging Face Spaces # app:smartkart_api → Flask instance name inside app.py CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]