anchor.diff:  FROM r-base
   
   MAINTAINER Jeffrey O Hanson "jeffrey.hanson@uqconnect.edu.au"
  +
  +RUN add-apt-repository -y ppa:marutter/c2d4u
   
   RUN apt-get update && apt-get install -y --allow-downgrades \
   	sudo \
  
positive.code: 	libgeos-c1v5 \
  	libgeotiff-dev \
  	libtiff-dev \
  	libtiff5=4.0.7-1 \
  	r-cran-rcpp
  
  RUN wget --no-verbose https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-12.04/x86_64/VERSION -O "version.txt" && \
  	VERSION=$(cat version.txt) && \
  
negative.code: 	gdebi -n ss-latest.deb && \
  	rm -f version.txt ss-latest.deb
   
  RUN R -e "install.packages(c('ghit', 'rgdal', 'shiny', 'rgeos', 'Hmisc', 'RColorBrewer', 'fortunes', 'shinyBS', 'RJSONIO', 'gridExtra', 'RCurl'), repos='https://cran.rstudio.com/')"
  
  RUN R -e  "ghit::install_github('jeffreyhanson/leaflet-shiny')"
  
  COPY shiny-server.conf /etc/shiny-server/shiny-server.conf
  
  RUN cp -R app/* /srv/shiny-server
  
  RUN mkdir -p /var/log/shiny-server
  
  