From 455071f04d8c56d2153bc8a4221c9c0f9e6e7997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Szab=C3=B3?= Date: Sat, 2 Mar 2019 21:20:54 +0100 Subject: [PATCH 1/2] Added basic Docker support --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab30441 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM jfloff/alpine-python:3.6-onbuild + +ADD . /opt/phoneinfoga + +WORKDIR /opt/phoneinfoga + +ENTRYPOINT ["python", "phoneinfoga.py"] From 4597733d083a812e50486b03d86c22a8fe0eeac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Szab=C3=B3?= Date: Sat, 2 Mar 2019 21:34:17 +0100 Subject: [PATCH 2/2] Added entry in README for using Docker --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 1d84188..f5cc6f9 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,24 @@ cd PhoneInfoga/ python3 -m pip install -r requirements.txt ``` +### With Docker + +#### Build + +```bash +docker build --rm=true -t phoneinfoga/latest . +``` + +#### Execute + +```bash +docker run --rm -v "$(pwd)":/opt/phoneinfoga -it phoneinfoga/latest +``` + +##### Limitations + +The input and the output files will have to be relative to the project root. + ## Usage ### [The full usage documentation has been moved to the wiki](https://github.com/sundowndev/PhoneInfoga/wiki)