anchor.diff:      libjpeg-turbo \
       libxslt-dev \
       mariadb-dev \
  -    # Python, duh.
  -    python py-pip
  +    python py-pip ;\
       pip install virtualenv
   
   FROM twlight_base as twlight_build
  
positive.code: ENV PATH="${PATH}:/opt/pandoc-2.7.1/bin" TWLIGHT_HOME=/app PYTHONUNBUFFERED=1 PYTHONPATH="/app:/usr/lib/python2.7"
  
  # Runtime dependencies.
  RUN apk add --update \
      # Refactoring shell code could remove this dependency
      bash \
      gettext \
      git \
      # Not needed by the running app, but by the backup/restore shell scripts.
      mariadb-client \
      # Node stuff for rtl support. This and subsequent node things
      # should all be moved out of the running container
      # since we just use it to generate a css file.
      nodejs \
      npm \
      tar
      # CSS Janus is the thing actually used to generate the rtl css.
      npm install cssjanus
      # Pandoc is used for rendering wikicode resource descriptions
      # into html for display. We do need this on the live image.
      wget https://github.com/jgm/pandoc/releases/download/2.7.1/pandoc-2.7.1-linux.tar.gz -P /tmp
      tar -xf /tmp/pandoc-2.7.1-linux.tar.gz --directory /opt
  
  # Utility scripts that run in the virtual environment.
  
negative.code:     libxml2-dev \
      musl-dev \
      python-dev \
      zlib-dev ;\
      virtualenv /venv ;\
      source /venv/bin/activate ;\
      pip install -r /requirements/wmf.txt
  
  FROM twlight_base
  