kopia/Dockerfile

30 lines
834 B
Text
Raw Normal View History

2024-12-15 19:05:57 +00:00
FROM kopia/kopia:0.18
2023-08-17 08:35:51 +00:00
2023-08-17 15:00:22 +00:00
ENV DEBIAN_FRONTEND=noninteractive
2024-03-04 13:47:42 +00:00
RUN apt-get update && apt-get install -y gnupg2 wget lsb-release
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update && apt-get install -y cron postgresql-client-15 lftp && rm -rf /var/lib/apt/lists/*
2023-08-17 15:00:22 +00:00
ARG KOPIA_CRON_SCHEDULE
ENV KOPIA_CRON_SCHEDULE ${KOPIA_CRON_SCHEDULE}
2023-08-17 15:00:22 +00:00
ARG KOPIA_USERNAME
ENV KOPIA_USERNAME ${KOPIA_USERNAME}
ARG KOPIA_HOSTNAME
ENV KOPIA_HOSTNAME ${KOPIA_HOSTNAME}
ARG KOPIA_PASSWORD
ENV KOPIA_PASSWORD ${KOPIA_PASSWORD}
2023-08-19 10:13:19 +00:00
ARG KOPIA_BACKUP_PATH=/backup
ENV KOPIA_BACKUP_PATH ${KOPIA_BACKUP_PATH}
2023-08-17 15:00:22 +00:00
ADD run-backup.sh /
2023-08-17 08:35:51 +00:00
ADD entrypoint.sh /
2023-08-17 10:09:17 +00:00
ENTRYPOINT [ "/entrypoint.sh" ]