A little Node.JS application that expose an API to do ebook conversion using calibre ebook-convert command.
Run the application by building the image and running it:
docker run --restart always -d --name calibre -p 3000:3000 denouche/node-calibre-api
Or by building the image using the Dockerfile.
Then to convert a .epub ebook to .mobi, use:
curl -O -J -L -s \
-H 'Content-Type: multipart/form-data' \
--form 'file=@/tmp/file.epub' \
--form 'to=mobi' \
'http://localhost:3000/calibre/ebook-convert'