CoolFace
Apppublic

quantumbit/mnist-classifier-api

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
Dockerfile19 linesDownload Raw Back to root
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"]