| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all project files | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Start the Flask app using Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:superkart_sales_api"] | |