FROM docker:24.0.7-dind

RUN apk add --upgrade --no-cache restic bash python3 py3-pip py3-click py3-docker-py py3-json-logger curl

# Todo use requirements file with specific versions
RUN pip install --break-system-packages resticpy==1.0.2

COPY backupbot.py /usr/bin/backup
COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT /entrypoint.sh
