Container for converting eBooks with the help of Calibre.
Read the docs:
docker run --rm -it bwstitt/ebook-convert
Convert a .epub to a .mobi and save it to the same directory:
cd /path/to/some/directory/with/ebooks/in/the/wrong/format export BOOK_NAME=name of your book docker run --rm -it -v "$(pwd):/target" bwstitt/ebook-convert "$BOOK_NAME.epub" "$BOOK_NAME.mobi"
You don't have to export variables, but I find it easier to read.
docker run command will log about saving the book to
/target/ which is
$EBOOK_DIR on your computer.
docker pull bwstitt/ebook-convert
- use alpine linux to keep the image smaller