CORD-2477 static build of core models

Change-Id: Ib2fd9a3ae42e44524a72c2513ea1497f5e49cfe6
diff --git a/containers/xos/Dockerfile.xos b/containers/xos/Dockerfile.xos
index b24da68..c2f64b1 100644
--- a/containers/xos/Dockerfile.xos
+++ b/containers/xos/Dockerfile.xos
@@ -26,6 +26,10 @@
  && sync \
  && /opt/xos/tools/xos-manage genkeys
 
+RUN xosgenx --output /opt/xos/core/models --target django.xtarget --dest-extension py --write-to-file model /opt/xos/core/models/core.xproto
+RUN xosgenx --output /opt/xos/core/models --target django-security.xtarget --dest-file security.py --write-to-file single /opt/xos/core/models/core.xproto
+RUN xosgenx --output /opt/xos/core/models --target init.xtarget --dest-file __init__.py --write-to-file single /opt/xos/core/models/core.xproto
+
 # Set environment variables
 ENV HOME /root