anchor.diff:  # Cruft to workaround problems with migrations, should go away...
   RUN /opt/xos/scripts/opencloud remigrate
   
  +# git clone uses cached copy, doesn't pick up latest
  +RUN git -C /opt/ansible pull
  +
   EXPOSE 8000
   
   # Set environment variables.
  
positive.code: RUN ln -s /usr/local/share/phantomjs-1.7.0-linux-x86_64 /usr/local/share/phantomjs
  RUN ln -s /usr/local/share/phantomjs/bin/phantomjs /bin/phantomjs
  
  # Get XOS 
  ADD xos /opt/xos
  
  
negative.code: 
  # Define default command.
  #CMD ["/bin/bash"]
  CMD service postgresql start; service supervisor start; cd /opt/xos; PUBLIC_HOSTNAME=`./xos-config.py get server_hostname $HOSTNAME`; python manage.py runserver $PUBLIC_HOSTNAME:8000
  