- Correction des imports dans domain/models.py (ajout des enums et modèles Pydantic) - Correction des imports dans routes/ (documents, health, admin) - Correction de la fonction init_db() dans app.py (suppression await) - Correction de la configuration MinIO (suppression du protocole http://) - Correction de la fonction get_detailed_verification_report (async) - Correction des imports StorageManager dans tasks/notary_tasks.py - Correction du Dockerfile worker (contexte de build et chemins) - Suppression de la dépendance python-alto non trouvée L'API est maintenant fonctionnelle et accessible sur http://localhost:8000
15 lines
359 B
Docker
15 lines
359 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-fra \
|
|
poppler-utils imagemagick ghostscript libgl1 python3-opencv \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY docker/worker/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY services/worker /app
|
|
|
|
CMD ["python", "worker.py"]
|