Skip to content

Commit

Permalink
fix: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Karina5005 committed Oct 12, 2023
1 parent b280908 commit 929c50b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
FROM python:3.10
WORKDIR /backup

ENV ACCESS_TOKEN=""
ENV ORGANIZATION=""

RUN apt-get update && apt-get upgrade -y && \
apt-get install -y git

RUN mkdir "/backup/backup"
RUN mkdir "/backup/metrics"

RUN pip install backup-github-org==1.0.4
ENTRYPOINT ["/usr/local/bin/backup-github", "--all", "-t", "$ACCESS_TOKEN", "-o", "./backup/",
"--metrics_path", "./metrics/${ORGANIZATION}_github_backup.prom", "$ORGANIZATION", ">", "./logs_${ORGANIZATION}.log"]

ENTRYPOINT backup-github --all -t $ACCESS_TOKEN -o /backup/backup --metrics_path /backup/metrics/${ORGANIZATION}_github_backup.prom $ORGANIZATION

0 comments on commit 929c50b

Please sign in to comment.