anchor.diff:  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
  -
  
positive.code: 
  FROM debian:jessie
  
  # feel free to change this ;)
  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\
  " > /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
  
  # install dependancies
  RUN apt-get -y build-dep pure-ftpd
  
  # build from source
  RUN mkdir /tmp/pure-ftpd/ && \
  	cd /tmp/pure-ftpd/ && \
  	apt-get source pure-ftpd && \
  
negative.code: 	dpkg-buildpackage -b -uc
  
  # install the new deb files
  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 &&\
  	useradd -g ftpgroup -d /home/ftpusers -s /dev/null ftpuser
  
  # 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"
  