From 6db7aabdfdcc3bbb01c21ba83dbc184c9eedf9ec Mon Sep 17 00:00:00 2001 From: oylbin Date: Thu, 23 Dec 2021 11:32:30 +0800 Subject: [PATCH] Add Dockerfile. Build: docker build -t git_stats:latest . Usage: docker run /path/to/repo:/src git_stats:latest --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..e19631d43 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM debian:stretch-slim +#RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list +RUN apt-get update \ + && apt-get install -y git ruby ruby-nokogiri ruby-nokogiri-diff ruby-nokogumbo \ + && gem install git_stats \ + && rm -rf /var/lib/apt/lists/* +WORKDIR /src +CMD git_stats generate