Sign inSign up

jlowin/git-sync

By jlowin

•Updated over 10 years ago

git-sync is a command that periodically syncs a remote git repository to a local directory.

Image
1

100K+

Dockerfile
FROM python:3-alpine

# install git
RUN apk add --update git && rm -rf /var/cache/apk/*

# install click
RUN pip install click

# copy script
COPY git-sync.py /git-sync.py
RUN chmod +x /git-sync.py

# run
ENV GIT_SYNC_DEST /git/
ENTRYPOINT ["./git-sync.py"]