My thesis done in Rmarkdown + bookdown + gitbook + GitLab + Docker. But it's easier than it seems ;)
http://phmu.io.pks.mpg.de/thesis/