freedomofpress / dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs
https://dangerzone.rocks/
GNU Affero General Public License v3.0
3.35k stars 152 forks source link

Bump Python system path to 3.12 in Dockerfile #812

Closed apyrgio closed 1 month ago

apyrgio commented 1 month ago

Alpine Linux 3.20 was released recently 1. As a result, the alpine:latest image ref, that our Dockerfile uses, switched from the 3.19 to the 3.20 Alpine Linux release. This release has Python 3.12, meaning that the following line in our Dockerfile now fails:

COPY --from=pymupdf-build /usr/lib/python3.11/site-packages/fitz/ /usr/lib/python3.11/site-packages/fitz

Bump the Python version in the Python system path to 3.12, so that we can successfully build the container image.