anchor.diff:    libtest-weaken-perl \
     libzmq3-dev
   
  +# Enable imagemagick policy permissions for work with arXiv PDF/EPS files
  +RUN perl -pi.bak -e 's/rights="none" pattern="([XE]?PS\d?|PDF)"/rights="read|write" pattern="$1"/g' /etc/ImageMagick-6/policy.xml
  +
   # Install LaTeXML-Plugin-Cortex's master branch via cpanminus
   RUN mkdir -p /opt/latexml_plugin_cortex
   WORKDIR /opt/latexml_plugin_cortex
  
positive.code: RUN export HARNESS_OPTIONS=j$(grep -c ^processor /proc/cpuinfo):c
  RUN mkdir -p /opt/latexml
  WORKDIR /opt/latexml
  RUN cpanm --verbose --skip-installed https://github.com/brucemiller/LaTeXML/tarball/master
  
  # libunix-processors-perl \ # only in 20.04 and newer
  # cortex worker dependencies
  
negative.code: ##
  ## run example via:
  ##
  ##
  ## 1. threadripper 1950x
  ## docker run --cpus="16.0" --memory="32g" --shm-size="16g" latexml-plugin-cortex:1.0 latexml_harness 131.188.48.209
  ##
  ## 2. monster config style:
  ## docker run --cpus="72.0" --memory="96g" --shm-size="64g" latexml-plugin-cortex:1.0 latexml_harness 131.188.48.209
  
  FROM ubuntu:18.04
  ENV TZ=America/New_York
  