anchor.diff: -FROM ubuntu:17.04
  +FROM johanneselias/ubuntu1704-apache2-php-perl:1.0
   
   RUN echo 'deb http://ftp.gwdg.de/pub/misc/cran/bin/linux/ubuntu zesty/' >> /etc/apt/sources.list
   
   RUN apt-get -y update && apt-get install -y --allow-unauthenticated \
  -   apache2 \
  -   cron \
  -   curl \
  -   less \
  -   libapache2-mod-perl2 \
  -   libapache2-mod-php \
      libcairo2-dev \
  -   libxt-dev \
  -   nano \
  -   p7zip \
  -   php \
  -   php-curl \
  -   php-gd \
  -   php-mbstring \
  -   php-mcrypt \
  -   php-mysql \
  -   php-xml \
  -   php-xmlrpc \
      r-base \
  -   r-base-dev \
  -   wget
  +   r-base-dev 
   
   RUN Rscript -e "install.packages(c('FastRWeb', 'Rserve'), repos = 'http://ftp.gwdg.de/pub/misc/cran')" 
   
  
positive.code: 
  RUN cp /usr/local/lib/R/site-library/FastRWeb/cgi-bin/Rcgi /usr/lib/cgi-bin/R
  
  RUN cp /etc/apache2/conf-available/security.conf /etc/apache2/conf-available/security_old.conf; \
     cat /etc/apache2/conf-available/security.conf | sed -e 's#ServerTokens OS#ServerTokens Prod#g' -e 's#ServerSignature On#ServerSignature Off#g' > security.conf; \
     cat /etc/apache2/apache2.conf | sed "s#Timeout 300#Timeout 30#g" > apache2.conf; \
     mv apache2.conf /etc/apache2/apache2.conf; \
     mv security.conf /etc/apache2/conf-available/security.conf
  
  COPY helper/fastrweb-configure /usr/bin/
  COPY helper/fastrweb-cgi.conf /etc/apache2/sites-available/
  
  
negative.code:    chmod -R 755 /usr/lib/cgi-bin
  
  ENTRYPOINT ["fastrweb-configure"]
     
  
  
  