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"]