api_sparrow_ocr / Dockerfile
Frederic-CellNum's picture
Update Dockerfile
941ccd9 verified
raw
history blame contribute delete
328 Bytes
FROM python:3.11
WORKDIR /app
# Installer les dépendances
COPY requirements.txt .
RUN pip install -r requirements.txt
# Pré-télécharger le modèle PENDANT le build (accès réseau autorisé)
COPY download_model.py .
RUN python download_model.py
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]