mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
FIXUP: Make Dockerfile work with latest wheels
This commit is contained in:
parent
eef4e8b548
commit
07921566ba
1 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,6 @@ FROM alpine:latest as pymupdf-build
|
||||||
ARG ARCH
|
ARG ARCH
|
||||||
ARG REQUIREMENTS_TXT
|
ARG REQUIREMENTS_TXT
|
||||||
|
|
||||||
RUN mkdir -p /usr/lib/python3.12/site-packages/PyMuPDFb.libs
|
|
||||||
# Install PyMuPDF via hash-checked requirements file
|
# Install PyMuPDF via hash-checked requirements file
|
||||||
COPY ${REQUIREMENTS_TXT} /tmp/requirements.txt
|
COPY ${REQUIREMENTS_TXT} /tmp/requirements.txt
|
||||||
|
|
||||||
|
@ -14,7 +13,7 @@ COPY ${REQUIREMENTS_TXT} /tmp/requirements.txt
|
||||||
RUN case "$ARCH" in \
|
RUN case "$ARCH" in \
|
||||||
"arm64") \
|
"arm64") \
|
||||||
# This is required for copying later, but is created only in the pre-built wheels
|
# 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 linux-headers g++ linux-headers gcc make python3-dev py3-pip clang-dev ;; \
|
||||||
*) \
|
*) \
|
||||||
apk --no-cache add py3-pip ;; \
|
apk --no-cache add py3-pip ;; \
|
||||||
|
@ -74,7 +73,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/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/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=tessdata-dl /usr/share/tessdata/ /usr/share/tessdata
|
COPY --from=tessdata-dl /usr/share/tessdata/ /usr/share/tessdata
|
||||||
COPY --from=h2orestart-dl /libreoffice_ext/ /libreoffice_ext
|
COPY --from=h2orestart-dl /libreoffice_ext/ /libreoffice_ext
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue