mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 12:41:50 +02:00
Pin MuPDF when building the container image
This commit is contained in:
parent
88a2d151ab
commit
f76dffdd98
1 changed files with 8 additions and 1 deletions
|
@ -4,11 +4,18 @@
|
||||||
FROM alpine:latest as pymupdf-build
|
FROM alpine:latest as pymupdf-build
|
||||||
|
|
||||||
ARG REQUIREMENTS_TXT
|
ARG REQUIREMENTS_TXT
|
||||||
|
ARG MUPDF_TGZ_VERSION="1.24.1"
|
||||||
|
ARG MUPDF_TGZ_CHECKSUM="5840308280a2be7bd55f5e8a0b5a3ab8839689fa389a48a91433dcabd465be4d"
|
||||||
|
|
||||||
|
RUN wget "https://mupdf.com/downloads/archive/mupdf-$MUPDF_TGZ_VERSION-source.tar.gz" \
|
||||||
|
&& echo "$MUPDF_TGZ_CHECKSUM mupdf-$MUPDF_TGZ_VERSION-source.tar.gz" | sha256sum -c \
|
||||||
|
&& tar -xzvf mupdf-$MUPDF_TGZ_VERSION-source.tar.gz
|
||||||
|
|
||||||
# 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
|
||||||
RUN apk --no-cache add linux-headers g++ linux-headers gcc make python3-dev py3-pip clang-dev
|
RUN apk --no-cache add linux-headers g++ linux-headers gcc make python3-dev py3-pip clang-dev
|
||||||
RUN pip install --break-system-packages --require-hashes -r /tmp/requirements.txt
|
RUN PYMUPDF_SETUP_MUPDF_BUILD="/mupdf-$MUPDF_TGZ_VERSION-source/" \
|
||||||
|
pip -vvv install --break-system-packages --require-hashes -r /tmp/requirements.txt
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
|
|
Loading…
Reference in a new issue