backup-bot-two/Dockerfile

13 lines
332 B
Docker

FROM docker:24.0.7-dind
RUN apk add --upgrade --no-cache restic bash python3 py3-pip
# Todo use requirements file with specific versions
RUN pip install click==8.1.7 docker==6.1.3 resticpy==1.0.2 --break-system-packages
COPY backupbot.py /usr/bin/backup
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT /bin/bash
CMD /entrypoint.sh