From 28c9fc38dac04f4a69bc837d64f92623d4b1aa4f Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 7 Oct 2024 17:25:16 +0300 Subject: [PATCH] FIXUP: Make Dockerfile work with latest wheels --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bbc3d30d3..d83f20eb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,6 @@ FROM alpine:latest as pymupdf-build ARG ARCH ARG REQUIREMENTS_TXT -RUN mkdir -p /usr/lib/python3.12/site-packages/PyMuPDFb.libs # Install PyMuPDF via hash-checked requirements file COPY ${REQUIREMENTS_TXT} /tmp/requirements.txt @@ -14,7 +13,7 @@ COPY ${REQUIREMENTS_TXT} /tmp/requirements.txt RUN case "$ARCH" in \ "arm64") \ # This is required for copying later, but is created only in the pre-built wheels - mkdir -p /usr/lib/python3.12/site-packages/PyMuPDFb.libs/ \ + mkdir -p /usr/lib/python3.12/site-packages/PyMuPDF.libs/ \ && apk --no-cache add linux-headers g++ linux-headers gcc make python3-dev py3-pip clang-dev ;; \ *) \ apk --no-cache add py3-pip ;; \ @@ -50,7 +49,7 @@ RUN apk --no-cache -U upgrade && \ COPY --from=pymupdf-build /usr/lib/python3.12/site-packages/fitz/ /usr/lib/python3.12/site-packages/fitz COPY --from=pymupdf-build /usr/lib/python3.12/site-packages/pymupdf/ /usr/lib/python3.12/site-packages/pymupdf -COPY --from=pymupdf-build /usr/lib/python3.12/site-packages/PyMuPDFb.libs/ /usr/lib/python3.12/site-packages/PyMuPDFb.libs +COPY --from=pymupdf-build /usr/lib/python3.12/site-packages/PyMuPDF.libs/ /usr/lib/python3.12/site-packages/PyMuPDF.libs COPY --from=h2orestart-dl /libreoffice_ext/ /libreoffice_ext RUN install -dm777 "/usr/lib/libreoffice/share/extensions/"