From 6c84969f59f8c9bd4ff4e3ef15d77aacaab1a0e8 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Tue, 5 Mar 2024 20:45:26 +0000 Subject: [PATCH] remove log file --- submanager/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/submanager/Dockerfile b/submanager/Dockerfile index f5e36e5..ebcd824 100644 --- a/submanager/Dockerfile +++ b/submanager/Dockerfile @@ -7,13 +7,12 @@ RUN pip install --no-cache-dir -r /submanager/requirements.txt RUN mkdir -p /sub /conf.d /submanager \ && apk --no-cache add dcron at \ - && touch /var/log/cron.log \ - && echo -e "python -u /submanager/update_nginx_config.py >> /var/log/cron.log 2>&1" | at now + 1 minute \ - && echo -e "python -u /submanager/remove_subscription.py >> /var/log/cron.log 2>&1" | at now + 1 minute \ - && echo -e "python -u /submanager/update_subscription.py >> /var/log/cron.log 2>&1" | at now + 1 minute \ - && echo -e "0 6,18 * * * python -u /submanager/update_subscription.py >> /var/log/cron.log 2>&1\n" > /etc/crontabs/root + && echo -e "python -u /submanager/update_nginx_config.py 2>&1" | at now + 1 minute \ + && echo -e "python -u /submanager/remove_subscription.py 2>&1" | at now + 1 minute \ + && echo -e "python -u /submanager/update_subscription.py 2>&1" | at now + 1 minute \ + && echo -e "0 6,18 * * * python -u /submanager/update_subscription.py 2>&1\n" > /etc/crontabs/root VOLUME /sub VOLUME /conf.d -CMD ["sh", "-c", "crond -f && tail -f /var/log/cron.log"] +CMD ["sh", "-c", "crond -f"]