Run Django in foreground when container starts
diff --git a/Dockerfile b/Dockerfile
index 411494a..3cdc864 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -116,4 +116,5 @@
 WORKDIR /root
 
 # Define default command.
-CMD ["/bin/bash"]
+#CMD ["/bin/bash"]
+CMD service postgresql start; cd /opt/xos; PUBLIC_HOSTNAME=`./xos-config.py get server_hostname $HOSTNAME`; python manage.py runserver $PUBLIC_HOSTNAME:8000