anchor.diff:  # Use debian:jessie as base image.
   FROM debian:jessie
  +
  +MAINTAINER XiaoyangSun "xshaun@outlook.com"
   
   # allow replacing httpredir or deb mirror
   #
  
positive.code: RUN apt-get update && apt-get install -y \
          python3 \
          python3-pip \
          python3-reportlab \
          curl \
          libxml2-dev \
          libxslt-dev \
  
negative.code:     && cd paper-dict-master \
      && pip3 install --timeout=1000 -i "https://$PIP_MIRROR/simple" -r requirements.txt \
      && chmod +x paper-dict.py \
      && chmod +x paper-dict-folder.sh
  
  # Clean up APT when done.
  RUN apt-get autoremove \
      && apt-get autoclean \
      && apt-get clean \
      && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  WORKDIR ./paper-dict-master