lorenzodifuccia / safaribooks

Download and generate EPUB of your favorite books from O'Reilly Learning (aka Safari Books Online) library.
Do What The F*ck You Want To Public License
4.61k stars 684 forks source link

Dockerize #342

Open ukazap opened 1 year ago

ukazap commented 1 year ago

Building image

cd safaribooks
docker build . -t safaribooks

Usage

Unlike other PRs (#242, #25, #328), the proposed Dockerfile takes a minimal approach (setting the entrypoint to python safaribooks.py without prepending any default/extra arguments) so that the user can run the image using almost the same command shown in the README.md, e.g.

cd safaribooks
python3 safaribooks.py --cred "my_email@gmail.com:MyPassword1!" 9781491958698

using the Docker image:

mkdir -p Books
docker run --rm -v $(pwd)/Books:/app/Books safaribooks --cred "my_email@gmail.com:MyPassword1!" 9781491958698