docker: add dockerfile to build image from hg repo (related to #290491) [applied]