diff --git a/backup/dockerfile b/backup/dockerfile index 4790e11..cd97560 100644 --- a/backup/dockerfile +++ b/backup/dockerfile @@ -1,20 +1,15 @@ FROM alpine:3.19 -RUN apk add --no-cache postgresql-client curl zip tzdata cron +RUN apk add --no-cache postgresql-client curl zip tzdata dcron +RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime +RUN mkdir -p /var/log/cron /backups - -RUN mkdir -p /app /var/log/cron WORKDIR /app COPY backup.sh . COPY crontab /etc/crontabs/root RUN chmod +x backup.sh && \ chmod 0644 /etc/crontabs/root && \ - touch /var/log/cron/cron.log && \ - chmod 666 /var/log/cron/cron.log + touch /var/log/cron/cron.log - -RUN printenv | grep -E 'PG_|TELEGRAM_' >> /etc/environment - - -CMD ["crond", "-f", "-l", "8", "-L", "/var/log/cron/cron.log"] \ No newline at end of file +CMD ["crond", "-f", "-L", "/var/log/cron/cron.log"] \ No newline at end of file