adding gitbackup container

This commit is contained in:
2022-08-04 12:46:11 -04:00
parent b3cbce7a22
commit 973480c6c2
2 changed files with 52 additions and 0 deletions

12
github-backup/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM alpine:latest
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
RUN pip3 install github-backup
ENTRYPOINT ["github-backup"]