sanrio-classifier / Dockerfile
MorritaConP1to's picture
Revert "feat: add side-by-side comparison, SVG confidence ring, character card animations, sparkles, floating effect, stagger top-3, report v2, referencia endpoint, personaje endpoint"
c928699
Raw
History Blame Contribute Delete
423 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements-deploy.txt .
RUN pip install --no-cache-dir --timeout 120 -r requirements-deploy.txt
COPY app/ app/
COPY models/ models/
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]