Dockerised python CLI program

* Dockerised python CLI program

* Add all files into the docker image
This commit is contained in:
aussiDavid 2019-03-23 00:31:05 +11:00 committed by Michael Pound
parent b036453851
commit 986a2af1e4
2 changed files with 11 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM python:3
RUN pip install requests
ADD . /app
ENTRYPOINT [ "python", "/app/pwned.py" ]

View File

@ -16,6 +16,10 @@ Usage:
arguments (beware the password may be saved in shell history and that
other users on the system may be able to observe the command line).
Using Docker:
* `docker build -t pwned .` Builds docker image
* `docker run --rm pwned [password]` Runs the pwned command pre-installed in a docker container
Thanks to those who fixed my dodgy code :)
Have fun! Oh, and if you find one of your own passwords, change it asap!