OCR pytesseract dans l'import + apercu editable
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user