FROM debian:jessie MAINTAINER Andre Peters ENV DEBIAN_FRONTEND noninteractive RUN apt-get update \ && apt-get -y --force-yes install apt-transport-https \ && apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4 \ && echo "deb http://packages.inverse.ca/SOGo/nightly/3/debian/ jessie jessie" > /etc/apt/sources.list.d/sogo.list \ && apt-get update \ && apt-get -y --force-yes install sogo sogo-activesync echo " \n\ \n\ \n\ \n\ OCSEMailAlarmsFolderURL\n\ mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_alarms_folder\n\ OCSFolderInfoURL\n\ mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_folder_info\n\ OCSSessionsFolderURL\n\ mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_sessions_folder\n\ SOGoProfileURL\n\ mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_user_profile\n\ SOGoUserSources\n\ \(\{type = sql;id = directory;viewURL = mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_view;canAuthenticate = YES;isAddressBook = YES;displayName = \"GAL\";MailFieldNames = (aliases, ad_aliases, senderacl);userPasswordAlgorithm = ssha256;\}\)\n\ \n\ " > /var/lib/sogo/GNUstep/Defaults/sogod.plist USER sogo CMD ["/usr/sbin/sogod"] EXPOSE 20000