Spaces:
Sleeping
Sleeping
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy all backend files into the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Start the app with Gunicorn | |
| # -w 4 : 4 worker processes | |
| # -b 0.0.0.0:7860 : listen on port 7860 | |
| # app:superkart_api : superkart_api object from app.py | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:superkart_api"] | |