Dockerised python CLI program
* Dockerised python CLI program * Add all files into the docker image
This commit is contained in:
parent
b036453851
commit
986a2af1e4
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM python:3
|
||||||
|
|
||||||
|
RUN pip install requests
|
||||||
|
|
||||||
|
ADD . /app
|
||||||
|
|
||||||
|
ENTRYPOINT [ "python", "/app/pwned.py" ]
|
@ -16,6 +16,10 @@ Usage:
|
|||||||
arguments (beware the password may be saved in shell history and that
|
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).
|
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 :)
|
Thanks to those who fixed my dodgy code :)
|
||||||
|
|
||||||
Have fun! Oh, and if you find one of your own passwords, change it asap!
|
Have fun! Oh, and if you find one of your own passwords, change it asap!
|
||||||
|
Loading…
Reference in New Issue
Block a user