quantumbit/mnist-classifier-api
0
1FROM python:3.10-slim2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && \7 apt-get install -y --no-install-recommends libgl1 && \8 apt-get clean && \9 rm -rf /var/lib/apt/lists/*10 11# Install Python dependencies12COPY requirements.txt .13RUN pip install --no-cache-dir --upgrade pip && \14 pip install --no-cache-dir -r requirements.txt15 16COPY . .17 18# Use timeout and worker settings suitable for Hugging Face19CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "1", "app:app"]