anchor.diff:  # ensure database is ready
   ADD config/buddycloud-server-java.dbconfig.conf /etc/dbconfig-common/buddycloud-server-java.conf 
   # install debian package
  -RUN /etc/init.d/postgresql start && DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/buddycloud-server.deb
  +RUN service postgresql start && DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/buddycloud-server.deb
   # update configuration files
   ADD config/buddycloud-server-java-configuration.properties /usr/share/buddycloud-server-java/configuration.properties
   ADD config/buddycloud-server-java-log4j.properties /usr/share/buddycloud-server-java/log4j.properties
  
positive.code: 
  EXPOSE 80 443 5222 5269
  
  ENTRYPOINT /etc/init.d/bind9 start && /etc/init.d/postgresql start && /etc/init.d/prosody start && \
             /etc/init.d/buddycloud-server-java start && service apache2 start && \
             /etc/init.d/buddycloud-http-api start; /bin/bash
  
negative.code: ADD config/buddycloud-bind-zone-conf.local /tmp/buddycloud-bind-zone-conf.local
  RUN cat /tmp/buddycloud-bind-zone-conf.local >> /etc/bind/named.conf.local
  ADD config/buddycloud-bind-zone.conf /etc/bind/db.buddycloud.dev
  RUN service bind9 restart
  
  # Setup XMPP-layer
  RUN apt-get install -y --no-install-recommends prosody lua-zlib lua-cyrussasl
  