add rclone binary; add example; bump restic version; use official python alpine image

Signed-off-by: Kenneth Bingham <w@qrk.us>
This commit is contained in:
Kenneth Bingham committed 2024-08-08 18:10:07 -04:00
1 parent e6ca4aa9ca
commit 4971be37e5
6 files changed
+113 -9

No files matched your search

+15 -7
View File
@@ -1,14 +1,22 @@
FROM restic/restic:0.9.6
FROM rclone/rclone:1 AS rclone
RUN apk update && apk add python3 \
dcron \
mariadb-client \
postgresql-client \
mariadb-connector-c-dev
FROM restic/restic:0.16.4 AS restic
FROM python:3.12-alpine
COPY --from=rclone /usr/local/bin/rclone /usr/local/bin/rclone
COPY --from=restic /usr/bin/restic /usr/local/bin/restic
RUN apk update \
&& apk add \
dcron \
mariadb-client \
postgresql-client \
mariadb-connector-c-dev
ADD . /restic-compose-backup
WORKDIR /restic-compose-backup
RUN pip3 install -U pip setuptools wheel && pip3 install -e .
RUN pip install -U pip setuptools wheel && pip install .
ENV XDG_CACHE_HOME=/cache
ENTRYPOINT []