Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.6

WORKDIR /app

COPY requirements.txt ./
COPY Pipfile ./
COPY Pipfile.lock ./
COPY register_user.py ./
COPY safaribooks.py ./
COPY sso_cookies.py ./

RUN pip install --no-cache-dir -r requirements.txt

ENTRYPOINT [ "python", "./safaribooks.py" ]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,22 @@ In this case, I suggest you to convert the `EPUB` to `AZW3` with Calibre or to `

---

## Using Docker

Build the image:

```shell
$ cd safaribooks/
$ docker build . -t safaribooks
```

Similar to the example in the [previous section](#examples), but using Docker:

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

## Thanks!!
For any kind of problem, please don't hesitate to open an issue here on *GitHub*.

Expand Down