Skip to content

Commit

Permalink
FIXUP simplify PyMuPDF build
Browse files Browse the repository at this point in the history
  • Loading branch information
deeplow committed Nov 16, 2023
1 parent 06064a7 commit 08d3d07
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,18 @@ ARG H2ORESTART_CHECKSUM=5db816a1e57b510456633f55e693cb5ef3675ef8b35df4f31c90ab9d
RUN apk --no-cache -U upgrade && \
apk --no-cache add \
ghostscript \
graphicsmagick \
libreoffice \
openjdk8 \
poppler-utils \
poppler-data \
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
Expand Down

0 comments on commit 08d3d07

Please sign in to comment.