FROM python:3.12-slim # Set the working directory inside the container WORKDIR /app # Copy all files from current directory to container COPY . . # Install dependencies RUN pip install --no-cache-dir --upgrade -r requirements.txt # Run Flask app with Gunicorn CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:superkart_api"]