Forgotten tesseract and imagemagick master
authorRadek Czajka <radekczajka@wolnelektury.pl>
Fri, 27 Nov 2026 19:54:36 +0000 (20:54 +0100)
committerRadek Czajka <radekczajka@wolnelektury.pl>
Fri, 27 Nov 2026 19:54:36 +0000 (20:54 +0100)
Dockerfile

index e4fcb80..db53e2f 100644 (file)
@@ -3,6 +3,11 @@ FROM python:3.10-slim-trixie AS base
 ARG UID=8200
 ARG GID=8200
 
 ARG UID=8200
 ARG GID=8200
 
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+    imagemagick tesseract-ocr tesseract-ocr-pol \
+ && rm -rf /var/lib/apt/lists/*
+
 COPY requirements/requirements.txt requirements.txt
 
 RUN --mount=type=cache,target=/root/.cache/pip \
 COPY requirements/requirements.txt requirements.txt
 
 RUN --mount=type=cache,target=/root/.cache/pip \