I wish i could try this editor but had no luck compiling it. Some troubles with deps (lablgtk) and then infinite compile cycle issue i could not resolve. Would be nice to have deps included in install script or something.
Ubuntu 14.04. I used opam to install lablgtk ( before that installed gtk+2.0 ) also installed xml-light with opam and then got infinite loop when compiling. Ocaml 4+
Did you run this before building?: eval `opam config env`
I tried this Dockerfile and it succeeded, maybe compare your steps with the ones below.
If it still doesn't work try moving this discussion to stackoverflow or the OCaml mailing list and provide the output when the infinite loop happens.
FROM ubuntu:trusty
RUN apt-get -y update && apt-get -y install opam aspcud && opam init -y
RUN apt-get install -y m4 libexpat1-dev libgtk2.0-dev
RUN opam install -y ocamleditor