Err, all of those things are already a thing?
https://github.com/koreader/koxtoolchain
(I mean, I don't do Docker myself, but it's been dockerized, for the KOReader images themselves first and foremost, and by various other people on barer images, IIRC).