refactor: add Telegram env in Dockerfile, move telegram notification to utils

This commit is contained in:
Jonas Kaninda
2024-09-11 04:33:41 +02:00
parent 63c0bda3a4
commit 4fe646ad63
6 changed files with 82 additions and 85 deletions

View File

@@ -38,6 +38,8 @@ ENV TARGET_DB_PASSWORD=""
ARG DEBIAN_FRONTEND=noninteractive
ENV VERSION="v1.2.5"
ENV BACKUP_CRON_EXPRESSION=""
ENV TG_TOKEN=""
ENV TG_CHAT_ID=""
ARG WORKDIR="/config"
ARG BACKUPDIR="/backup"
ARG BACKUP_TMP_DIR="/tmp/backup"
@@ -45,6 +47,7 @@ ARG BACKUP_CRON="/etc/cron.d/backup_cron"
ARG BACKUP_CRON_SCRIPT="/usr/local/bin/backup_cron.sh"
LABEL author="Jonas Kaninda"
RUN apt-get update -qq
RUN apt install postgresql-client supervisor cron gnupg -y