Merge from thomaslevell

optimize docker image size and autodiscover latest PMS version