SuperKartPrediction / Dockerfile
ramzai9's picture
Upload folder using huggingface_hub
1081883 verified
# Use a minimal Python 3.9 base image
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Copy all files from the current directory to the container
COPY . .
# Install dependencies (no cache to keep image size small)
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Start Flask app using Gunicorn with 4 workers on port 7860
# app:superkart_api -> module "app.py", Flask instance "superkart_api"
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:superkart_api"]