add git-cli

This commit is contained in:
2020-03-04 22:44:03 +08:00
parent aff87da882
commit 4d8ac63806
4 changed files with 74 additions and 0 deletions

11
git-cli/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM alpine:3.11
MAINTAINER Newnius <newnius.cn@gmail.com>
USER root
RUN apk add --no-cache git
RUN mkdir /data
WORKDIR /data

12
git-cli/README.md Normal file
View File

@@ -0,0 +1,12 @@
# Run git client in docker
## Deploy
```bash
docker run \
--name git-cli \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
--mount type=bind,src=/data/,dst=/data/ \
newnius/git-cli git push origin
```