Running my own discourse image

Write your own. But I was speaking generally. Rafael, however has pointed out that sso is supported natively in the base install so you just need to follow the guide he links to configure it.