fix: Change imagemagick policy for pdfs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glenn Y. Rolland 2023-03-23 11:19:25 +01:00
parent 11b4e51e58
commit 209621cb89

View file

@ -50,12 +50,15 @@ RUN apt-get update && apt-get install -y libgmp3-dev \
&& docker-php-ext-install gmp && docker-php-ext-install gmp
## ##
## SVG support ## SVG and LibreSign support
## ##
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libmagickcore-6.q16-6-extra \ libmagickcore-6.q16-6-extra \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN sed -i'' 's|.*<policy domain="coder".*"PDF".*|<policy domain="coder" rights="read \| write" pattern="PDF" />|g' \
/etc/ImageMagick-6/policy.xml
## ##
## Raise memory limit for PHP ## Raise memory limit for PHP
## ##