Add Dockerfile.

Build: docker build -t git_stats:latest .
Usage: docker run /path/to/repo:/src git_stats:latest
This commit is contained in:
oylbin 2021-12-23 11:32:30 +08:00
parent cb0af46e18
commit 6db7aabdfd

8
Dockerfile Normal file
View file

@ -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