Skip to content

Commit 32acf7b

Browse files
author
Ukaza Perdana
committed
Dockerize
## Building image ``` cd safaribooks docker build . -t safaribooks ``` ## Usage ``` mkdir -p Books docker run --rm -v $(pwd)/Books:/app/Books safaribooks --cred "my_email@gmail.com:MyPassword1!" 9781491958698 ```
1 parent 48ae994 commit 32acf7b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.6
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt ./
6+
COPY Pipfile ./
7+
COPY Pipfile.lock ./
8+
COPY register_user.py ./
9+
COPY safaribooks.py ./
10+
COPY sso_cookies.py ./
11+
12+
RUN pip install --no-cache-dir -r requirements.txt
13+
14+
ENTRYPOINT [ "python", "./safaribooks.py" ]

0 commit comments

Comments
 (0)