1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-21 19:24:18 +00:00
gestalt-amadeus/Dockerfile

36 lines
1.3 KiB
Text
Raw Permalink Normal View History

2023-03-14 18:32:14 +00:00
# FROM archlinux:latest
2023-05-14 21:45:12 +00:00
FROM alpine:latest AS final
2023-03-14 18:32:14 +00:00
# Install duplicity
# RUN pacman --noconfirm -Syu duplicity python-pip python-pydrive2
2023-03-15 08:19:27 +00:00
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
2024-10-25 04:35:59 +00:00
RUN apk add py3-pip python3-dev gcc libffi-dev musl-dev openssl-dev pkgconfig duplicity rust cargo git curl
RUN pip install --upgrade pip --break-system-packages
RUN pip install google-auth-oauthlib google-api-python-client --break-system-packages
RUN apk del rust musl-dev libffi-dev gcc python3-dev cargo git pkgconfig openssl-dev
2023-03-14 18:32:14 +00:00
2023-05-17 19:56:20 +00:00
WORKDIR /usr/lib/duplicity
ENV HOME="/usr/lib/duplicity"
2023-03-14 18:32:14 +00:00
2023-05-17 13:51:14 +00:00
# Add entrypoint
2023-05-17 15:04:16 +00:00
COPY ./entrypoint.sh /usr/lib/backup-duplicity/entrypoint.sh
COPY ./restore.sh /usr/lib/backup-duplicity/restore.sh
2023-05-17 13:51:14 +00:00
COPY ./backup.sh /etc/periodic/daily/backup.sh
2023-03-14 18:32:14 +00:00
# Configure entrypoint and command
2023-05-17 15:04:16 +00:00
ENTRYPOINT ["/usr/lib/backup-duplicity/entrypoint.sh"]
2023-03-14 18:32:14 +00:00
CMD []
# Add image labels
2023-03-14 18:38:14 +00:00
LABEL org.opencontainers.image.title="backup-duplicity"
2023-03-14 18:32:14 +00:00
LABEL org.opencontainers.image.description="Backup solution for Docker volumes based on Duplicity"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.url="https://github.com/Steffo99/docker-backup-duplicity"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
# Configure duplicity
ENV DUPLICITY_FULL_IF_OLDER_THAN=1M
2023-03-14 18:35:07 +00:00
2024-10-24 08:38:59 +00:00
ENV NTFY=""
ENV NTFY_TAGS=""