From c891985de3f2a819d8cf84c498251f03650df39c Mon Sep 17 00:00:00 2001 From: Breee Date: Thu, 11 Mar 2021 13:55:25 +0100 Subject: [PATCH] Add Dockerfile Dockerfile, if you wish to run gininspector containerized --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f9de287 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Simple dockerfile for gitinspector +# Usage: +# To build the image, execute the following command in the repository of gitinspector. +# docker build -t gitinspector . +# +# Run the following commands in the repository you want to analyze: +# docker run --rm -it -v $(pwd):/repo gitinspector -f cs,fs -m -r -T -w /repo -F json > myresults.json +# docker run --rm -it gitinspector --help + + +FROM python:3.7-alpine + +WORKDIR /app +COPY . . + +RUN apk update && apk add git + +ENTRYPOINT ["python3", "/app/gitinspector.py"]