Skip to content

Instantly share code, notes, and snippets.

@tonymorris
Last active July 13, 2020 09:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonymorris/351d57b4d5aa6fb526349dd1d2b7a811 to your computer and use it in GitHub Desktop.
Save tonymorris/351d57b4d5aa6fb526349dd1d2b7a811 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y libreoffice imagemagick ghostscript rsync bash pdftk texlive-xetex texlive-luatex ttf-dejavu sudo zlib1g-dev ghc cabal-install
RUN export TZ=Australia/Brisbane
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN export LANG=C.UTF-8
RUN grep write /etc/ImageMagick-6/policy.xml
RUN sed -i 's/\(<policy domain="coder" rights=\)"none" \(pattern="PDF" \/>\)/\1"read|write"\2/g' /etc/ImageMagick-6/policy.xml
RUN grep write /etc/ImageMagick-6/policy.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment