From 986a2af1e4bf8ded08f91d5729f6061bca8c7dec Mon Sep 17 00:00:00 2001 From: aussiDavid Date: Sat, 23 Mar 2019 00:31:05 +1100 Subject: [PATCH] Dockerised python CLI program * Dockerised python CLI program * Add all files into the docker image --- Dockerfile | 7 +++++++ README.md | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f4357d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3 + +RUN pip install requests + +ADD . /app + +ENTRYPOINT [ "python", "/app/pwned.py" ] diff --git a/README.md b/README.md index 1a62b66..09ff8c4 100644 --- a/README.md +++ b/README.md @@ -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!