anchor.diff:  # DOCKER-VERSION 1.0
   
   # Base image for other DIT4C platform images
  -FROM centos:7
  +FROM dit4c/centos-notroot:7
   MAINTAINER t.dettrick@uq.edu.au
   
  +USER root
  +
   # Create researcher user for notebook
  -RUN /usr/sbin/useradd researcher && \
  +RUN groupmod -n researcher notroot && \
  +  usermod -l researcher -m -d /home/researcher notroot && \
     yum remove -y rootfiles && \
  -  curl -s -L http://portable.proot.me/proot-x86_64 > /usr/sbin/proot && \
  -  chmod +x /usr/sbin/proot && \
  -  find / -mindepth 1 -maxdepth 1 -type d | \
  -    grep -v -E 'dev|proc|sys' | \
  -    xargs chown -R researcher:researcher && \
  -  rm -rf /root
  +  rm -rf /root /var/cache/yum/* /tmp/*
  +
  +USER researcher
   
   # Directories that don't need to be preserved in images
   VOLUME ["/var/cache/yum", "/tmp"]
  -
  -USER researcher
   
   COPY /usr/local/bin /usr/local/bin
   
  
positive.code: COPY opt /opt
  COPY var /var
  
  # Because COPY doesn't respoect USER...
  USER root
  RUN chown -R researcher:researcher /etc /opt /var
  USER researcher
  
negative.code: RUN fsudo pip install kid flup
  
  # Install NPM & tty-lean.js
  RUN fsudo rpm --rebuilddb && fsudo yum install -y tar gcc-c++ && \
    curl -L https://npmjs.org/install.sh | clean=no fsudo bash && \
    fsudo npm install -g tty-lean.js && \
    fsudo rm -r ~/.npm
  
  # Install EasyDAV
  COPY easydav_fix-archive-download.patch /tmp/
  