anchor.diff: -
  -FROM debian:jessie
  +FROM debian:stretch
   
   # feel free to change this ;)
  -MAINTAINER Andrew Stilliard <andrew.stilliard@gmail.com>
  +LABEL maintainer "Andrew Stilliard <andrew.stilliard@gmail.com>"
   
   # properly setup debian sources
   ENV DEBIAN_FRONTEND noninteractive
  -RUN echo "deb http://http.debian.net/debian jessie main\n\
  -deb-src http://http.debian.net/debian jessie main\n\
  -deb http://http.debian.net/debian jessie-updates main\n\
  -deb-src http://http.debian.net/debian jessie-updates main\n\
  -deb http://security.debian.org jessie/updates main\n\
  -deb-src http://security.debian.org jessie/updates main\n\
  +RUN echo "deb http://http.debian.net/debian stretch main\n\
  +deb-src http://http.debian.net/debian stretch main\n\
  +deb http://http.debian.net/debian stretch-updates main\n\
  +deb-src http://http.debian.net/debian stretch-updates main\n\
  +deb http://security.debian.org stretch/updates main\n\
  +deb-src http://security.debian.org stretch/updates main\n\
   " > /etc/apt/sources.list
  -RUN apt-get -y update
   
   # install package building helpers
  -RUN apt-get -y --force-yes --fix-missing install dpkg-dev debhelper
  +# rsyslog for logging (ref https://github.com/stilliard/docker-pure-ftpd/issues/17)
  +RUN apt-get -y update && \
  +	apt-get -y --force-yes --fix-missing install dpkg-dev debhelper &&\
  +	apt-get -y build-dep pure-ftpd &&\
  +	apt-get -y install openbsd-inetd rsyslog
   
  -# install dependancies
  -RUN apt-get -y build-dep pure-ftpd
  -
  -# build from source
  +# build from source to add --without-capabilities flag
   RUN mkdir /tmp/pure-ftpd/ && \
   	cd /tmp/pure-ftpd/ && \
   	apt-get source pure-ftpd && \
  
positive.code: 	dpkg-buildpackage -b -uc
  
  # install the new deb files
  RUN dpkg -i /tmp/pure-ftpd/pure-ftpd-common*.deb
  RUN apt-get -y install openbsd-inetd
  RUN dpkg -i /tmp/pure-ftpd/pure-ftpd_*.deb
  
  # Prevent pure-ftpd upgrading
  RUN apt-mark hold pure-ftpd pure-ftpd-common
  
  # setup ftpgroup and ftpuser
  RUN groupadd ftpgroup
  RUN useradd -g ftpgroup -d /home/ftpusers -s /dev/null ftpuser
  
  # rsyslog for logging (ref https://github.com/stilliard/docker-pure-ftpd/issues/17)
  RUN apt-get install -y rsyslog && \
  	echo "" >> /etc/rsyslog.conf && \
  	echo "#PureFTP Custom Logging" >> /etc/rsyslog.conf && \
  	echo "ftp.* /var/log/pure-ftpd/pureftpd.log" >> /etc/rsyslog.conf && \
  	echo "Updated /etc/rsyslog.conf with /var/log/pure-ftpd/pureftpd.log"
  
negative.code: CMD /run.sh -c 5 -C 5 -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P $PUBLICHOST -p 30000:30009
  
  EXPOSE 21 30000-30009
  