Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Workdir inside the container | |
| WORKDIR /app | |
| # Copy everything from backend_files into the image | |
| COPY . . | |
| # Install deps | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Optional (good practice) | |
| EXPOSE 7860 | |
| # Start the Flask API via Gunicorn (our Flask instance is named superkart_api in app.py) | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:superkart_api"] | |