mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-15 18:36:44 +00:00
add git-cli
This commit is contained in:
11
git-cli/Dockerfile
Normal file
11
git-cli/Dockerfile
Normal 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
12
git-cli/README.md
Normal 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user