24 lines
545 B
Docker
24 lines
545 B
Docker
FROM kopia/kopia
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y cron postgresql-client && rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG KOPIA_CRON_SCHEDULE
|
|
ENV KOPIA_CRON_SCHEDULE ${KOPIA_CRON_SCHEDULE}
|
|
|
|
ARG KOPIA_USERNAME
|
|
ENV KOPIA_USERNAME ${KOPIA_USERNAME}
|
|
|
|
ARG KOPIA_HOSTNAME
|
|
ENV KOPIA_HOSTNAME ${KOPIA_HOSTNAME}
|
|
|
|
ARG KOPIA_PASSWORD
|
|
ENV KOPIA_PASSWORD ${KOPIA_PASSWORD}
|
|
|
|
ARG KOPIA_BACKUP_PATH=/backup
|
|
ENV KOPIA_BACKUP_PATH ${KOPIA_BACKUP_PATH}
|
|
|
|
ADD run-backup.sh /
|
|
ADD entrypoint.sh /
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|