Skip to content

Commit d2338d4

Browse files
increase imagemagick resource limits in dockerfile
1 parent a7ff6d4 commit d2338d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,10 @@ RUN tlmgr install amsmath \
8888
sourcecodepro \
8989
amscls \
9090
natbib
91+
92+
# increase the ImageMagick resource limits
93+
# this relies on the fact that there is only one place where each of these sizes are used in policy.xml
94+
# (256MiB is for memory, 512MiB is for map, 1GiB is for disk)
95+
RUN sed -i 's/256MiB/4GiB/' /etc/ImageMagick-6/policy.xml
96+
RUN sed -i 's/512MiB/4GiB/' /etc/ImageMagick-6/policy.xml
97+
RUN sed -i 's/1GiB/4GiB/' /etc/ImageMagick-6/policy.xml

0 commit comments

Comments
 (0)