Add missing dependencies to the PDF OCR container (#411)

This commit is contained in:
cybermaggedon 2025-06-16 14:15:16 +01:00 committed by GitHub
parent 35b0d80013
commit 81d73445bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ FROM docker.io/fedora:42 AS base
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN dnf install -y python3.12 && \ RUN dnf install -y python3.12 && \
dnf install -y tesseract poppler-utils && \
alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \ alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
python -m ensurepip --upgrade && \ python -m ensurepip --upgrade && \
pip3 install --no-cache-dir wheel aiohttp && \ pip3 install --no-cache-dir wheel aiohttp && \