anchor.diff:  	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
  +RUN dpkg -i /tmp/pure-ftpd/pure-ftpd-common*.deb &&\
  +	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
  +RUN groupadd ftpgroup &&\
  +	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 && \
  +# configure rsyslog logging
  +RUN 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"
  
positive.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
  
  
negative.code: FROM debian:stretch
  
  # feel free to change this ;)
  LABEL maintainer "Andrew Stilliard <andrew.stilliard@gmail.com>"
  
  # properly setup debian sources
  ENV DEBIAN_FRONTEND noninteractive
  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
  
  # install package building helpers
  # 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
  
  # build from source to add --without-capabilities flag
  RUN mkdir /tmp/pure-ftpd/ && \
  	cd /tmp/pure-ftpd/ && \
  	apt-get source pure-ftpd && \
  