anchor.diff:  ENV DEBIAN_FRONTEND noninteractive
   
   # we try to log everything into one directory
  -RUN mkdir /var/log/buddycloud && chmod a+rx /var/log/buddycloud
  +RUN mkdir /var/log/buddycloud && chmod a+rwx /var/log/buddycloud
   
   # Common dependencies
   RUN apt-get install -y --no-install-recommends wget  
  
positive.code: RUN a2enmod proxy_wstunnel rewrite ssl headers expires
  RUN a2dissite buddycloud-apache-virtual-host
  RUN a2ensite buddycloud-apache-virtual-host
  
  EXPOSE 80 443 5222 5269
  
  
negative.code: # Switch back to root
  USER root
  # Add VOLUMEs to allow backup of databases
  # VOLUME  ["/var/lib/postgresql"]
  
  # Setup XMPP-layer
  RUN apt-get install -y --no-install-recommends prosody lua-zlib lua-cyrussasl lua-sec
  