OCR pytesseract dans l'import + apercu editable

This commit is contained in:
2026-06-30 08:52:45 +02:00
parent ab8af8d4bb
commit 60aab53227
4 changed files with 287 additions and 133 deletions
+6 -2
View File
@@ -5,13 +5,17 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
WORKDIR /app
# psycopg2-binary embarque sa propre libpq : pas besoin de build-essential ni libpq-dev.
# Tesseract (OCR) + langue française, pour l'import par capture d'écran.
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr tesseract-ocr-fra \
&& rm -rf /var/lib/apt/lists/*
# psycopg2-binary embarque sa propre libpq : pas besoin de build-essential.
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Fichiers statiques de l'admin (ne nécessite pas la base de données)
RUN DJANGO_SECRET_KEY=build python manage.py collectstatic --noinput
EXPOSE 8000