#!/bin/bash set -ex apt-get update apt-get install -y \ poppler-utils \ ghostscript \ rm -rf /var/lib/apt/lists/* # Allow ImageMagick to process PDF files. This is for tests only, but since we # use the production images for tests, this will apply to production as well. patch /etc/ImageMagick-6/policy.xml < - EOF