From 0afdb08fac5767189c1af1225340a0ccde04bbd1 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Tue, 19 Sep 2023 13:10:34 +0200 Subject: [PATCH] Add ghostscript + imagemagick policy --- Dockerfile | 2 + docker/policy.xml | 99 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 docker/policy.xml diff --git a/Dockerfile b/Dockerfile index 582fd6a..8beaf3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ openssl \ supervisor \ nodejs \ + ghostscript \ npm \ sudo && rm -rf /var/lib/apt/lists/* @@ -49,6 +50,7 @@ RUN sed -e 's/Listen 80/Listen 8080/g' -i /etc/apache2/ports.conf COPY ./docker/dma.conf /etc/dma/dma.conf COPY ./docker/biblioteca.ini /usr/local/etc/php/conf.d/biblioteca.ini +COPY ./docker/policy.xml /etc/ImageMagick-6/policy.xml USER www-data diff --git a/docker/policy.xml b/docker/policy.xml new file mode 100644 index 0000000..afbc6b0 --- /dev/null +++ b/docker/policy.xml @@ -0,0 +1,99 @@ + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +