From 08d3d072e17e923462fd1f14922dbae024665c98 Mon Sep 17 00:00:00 2001 From: deeplow Date: Thu, 16 Nov 2023 12:52:39 +0000 Subject: [PATCH] FIXUP simplify PyMuPDF build --- Dockerfile | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1836aaad5..d89fd613e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ ARG H2ORESTART_CHECKSUM=5db816a1e57b510456633f55e693cb5ef3675ef8b35df4f31c90ab9d RUN apk --no-cache -U upgrade && \ apk --no-cache add \ ghostscript \ - graphicsmagick \ libreoffice \ openjdk8 \ poppler-utils \ @@ -15,25 +14,11 @@ RUN apk --no-cache -U upgrade && \ python3 \ py3-magic \ tesseract-ocr \ - font-noto-cjk \ - py3-pip + font-noto-cjk -RUN apk update && apk add --no-cache \ -python3-dev \ -mupdf-dev \ -gcc \ -libc-dev \ -musl-dev \ -jbig2dec \ -openjpeg-dev \ -jpeg-dev \ -harfbuzz-dev \ -swig \ -make \ -g++ && ln -s /usr/lib/libjbig2dec.so.0 /usr/lib/libjbig2dec.so && pip install --no-cache-dir pymupdf==1.21.1 - -# FIXME freeze w/ hashes -RUN pip install pymupdf +RUN apk add g++ gcc make python3-dev py3-pip +RUN pip install --upgrade PyMuPDF # FIXME freeze w/ hashes +RUN apk del g++ gcc make python3-dev py3-pip # Download the trained models from the latest GitHub release of Tesseract, and # store them under /usr/share/tessdata. This is basically what distro packages