Skip to content

Commit

Permalink
Dockerize
Browse files Browse the repository at this point in the history
## Building image

```
cd safaribooks
docker build . -t safaribooks
```

## Usage

```
mkdir -p Books
docker run --rm -v $(pwd)/Books:/app/Books safaribooks --cred "[email protected]:MyPassword1!" 9781491958698
```
  • Loading branch information
Ukaza Perdana committed Jun 23, 2023
1 parent 48ae994 commit 32acf7b
Showing 1 changed file with 14 additions and 0 deletions.
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" ]

0 comments on commit 32acf7b

Please sign in to comment.