1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2025-03-13 20:15:03 +00:00
gestalt-amadeus/Dockerfile
2025-01-19 14:28:41 +01:00

39 lines
1.4 KiB
Docker

# FROM archlinux:latest
FROM alpine:latest AS final
# Install duplicity
# RUN pacman --noconfirm -Syu duplicity python-pip python-pydrive2
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
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
# Create log directory
RUN mkdir --parents --verbose /var/log/gestalt-amadeus
# Create program directory
WORKDIR /usr/lib/gestalt-amadeus
ENV HOME="/usr/lib/gestalt-amadeus"
# Add entrypoint
COPY ./entrypoint.sh /usr/lib/gestalt-amadeus/entrypoint.sh
COPY ./restore.sh /usr/lib/gestalt-amadeus/restore.sh
COPY ./backup.sh /etc/periodic/daily/backup.sh
# Configure entrypoint and command
ENTRYPOINT ["/usr/lib/gestalt-amadeus/entrypoint.sh"]
CMD []
# Add image labels
LABEL org.opencontainers.image.title="gestalt-amadeus"
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/gestalt-amadeus"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
# Configure duplicity
ENV DUPLICITY_FULL_IF_OLDER_THAN=1M
ENV NTFY=""
ENV NTFY_TAGS=""