mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
10 lines
398 B
Docker
10 lines
398 B
Docker
FROM ubuntu:18.04
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y file poppler-utils imagemagick ghostscript
|
|
|
|
# Fix imagemagick policy to allow writing PDFs
|
|
RUN sed -i '/rights="none" pattern="PDF"/c\<policy domain="coder" rights="read|write" pattern="PDF" />' /etc/ImageMagick-6/policy.xml
|
|
|
|
COPY convert_to_pixels /usr/local/bin/convert_to_pixels
|
|
COPY convert_to_pdf /usr/local/bin/convert_to_pdf
|