diff options
| author | 2021-10-24 08:25:03 -0700 | |
|---|---|---|
| committer | 2021-10-24 17:25:03 +0200 | |
| commit | 07e00c7681e5fd9e680cba75125b166b96a96198 (patch) | |
| tree | 724b01fd3e0b135ce56ac2c893f730b5de468973 /Docker/Dockerfile | |
| parent | c5ab4cea4a773b2d61e2413a955785431517c3ce (diff) | |
Docker: don't add crontab unless needed. (#3927)
Adding the crontab as part of the image build makes it more complicated
to add custom entries to the crontab. Adjusting the image and entrypoint
to make it so that the crontab is only added when CRON_MIN is set
simplifies having a custom crontab.
Diffstat (limited to 'Docker/Dockerfile')
| -rw-r--r-- | Docker/Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 3dd81f926..c86298b20 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -45,7 +45,7 @@ RUN sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" /etc/apache2/apache2.co touch /var/www/FreshRSS/Docker/env.txt && \ echo "7,37 * * * * . /var/www/FreshRSS/Docker/env.txt; \ su www-data -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \ - 2>> /proc/1/fd/2 > /tmp/FreshRSS.log" | crontab - + 2>> /proc/1/fd/2 > /tmp/FreshRSS.log" > /var/www/FreshRSS/Docker/crontab.default ENV COPY_LOG_TO_SYSLOG On ENV COPY_SYSLOG_TO_STDERR On |
